built CUDA 4.0 examples failed on cuCtxDestroy_v2 cuCtxDestroy_v2 not defined

Hi All,

I am building examples under NVIDIA_GPU_Computing_SDK/C. Here are my error messages:

make -C src/ptxjit/ 

make[1]: Entering directory `/hpc_shared/home/xunlei/programs/NVIDIA_GPU_Computing_SDK/C/src/ptxjit'

obj/x86_64/release/ptxjit.cpp.o: In function `main':

ptxjit.cpp:(.text+0x458): undefined reference to `cuCtxDestroy_v2'

collect2: ld returned 1 exit status

make[1]: *** [../../bin/linux/release/ptxjit] Error 1

make[1]: Leaving directory `/hpc_shared/home/xunlei/programs/NVIDIA_GPU_Computing_SDK/C/src/ptxjit'

make: *** [src/ptxjit/Makefile.ph_build] Error 2


ptxjit.cpp line 126 calls cyCtxDestroy() instead. I already have

-bash-3.2$ cd bin/linux/release/

-bash-3.2$ ls

bicubicTexture  inlinePTX   randomFog             simplePitchLinearTexture  SobelFilter

eigenvalues     Interval    simpleGL              simplePrintf              threadFenceReduction

fluidsGL        Mandelbrot  simpleLayeredTexture  simpleTemplates


built. Would you please help? Thanks a lot.



are you sure you’re using the right toolkit?