cudaMemcpy() Passing and using Class objects Source Code Objective: Declaring a class. Allocating memory for a class object in CUDA device. Passing and using the object.