cudamalloc error cudaMallocAndMemcpy.cu

im a beginner in cuda, just downloaded the exercise cudaMallocAndMemcpy project from nvidia and compiled it using vs2005

it should the following error

1>cudaMallocAndMemcpy.cu(67): error: no instance of overloaded function “cudaMalloc” matches the argument list
1>cudaMallocAndMemcpy.cu(68): error: no instance of overloaded function “cudaMalloc” matches the argument list
1>cudaMallocAndMemcpy.cu(71): error: too few arguments in function call
1>cudaMallocAndMemcpy.cu(74): error: too few arguments in function call
1>cudaMallocAndMemcpy.cu(83): error: too few arguments in function call
1>cudaMallocAndMemcpy.cu(95): error: too few arguments in function call
1>cudaMallocAndMemcpy.cu(96): error: too few arguments in function call

can some one guide me, to fix these errors

thankyou

How do you compile the .cu file?

You must use nvcc to compile .cu file

thanks for the reply

iam using windows xp, vs2005 and i just downloaded the project and opened the .sln file and tried to compile using vs2005 itself,

so can you pls tell me how to setup for nvcc, and how to compile it

I think that you can download CUDA VS Wizard 2.0 in the thread

http://forums.nvidia.com/index.php?showtopic=83054