good afternoon all
i have two dimensional structure in the host memory and i need to transfer it to the device memory by allocating memory in the device and then copying from host to device.
Can some one help me with a sample code of using cudamallocpitch .
my structure looks like this
now i have declared struct rngen **new and allocated for new.This new i need to transfer to the device memory first by allocating and then copying it into the device memory.
Can some body help me urgently.