Problem with cudaMemcpy()

Hey all!

I’m new on CUDA and I’m using VS 2008 at Windows XP. I tried to compile my kernel but everytime I found the same and only 2 errors:

1>BS_Mat_Din.cu(253): error: identifier “cudaMemcpyHosttoDevice” is undefined
1>BS_Mat_Din.cu(277): error: identifier “cudaMemcpyDevicetoHost” is undefined

Only for you to know:

BS_Mat_Din.cu is the file where are all the functions of my program and the kernel definition.
The function main() is on another file.

I just include cuda.h at my code, so I don’t have any idea why it’s happening. Anyone can help me?

Thanks,

Lys Marie.

Try cudaMemcpyDeviceToHost and cudaMemcpyHostToDevice.

Try cudaMemcpyDeviceToHost and cudaMemcpyHostToDevice.

Thank you so much avidday!!! It worked! There are 2 anothers errors now, but I think I can handle that!

Lys Marie.

Thank you so much avidday!!! It worked! There are 2 anothers errors now, but I think I can handle that!

Lys Marie.