hello , first i need to mention that i`m new to this stuff.
so i found this book , GPU Gems 3 ( [url=“Foreword | NVIDIA Developer”]http://developer.nvidia.com/object/gpu-gems-3.html[/url] ) and also the DVD which contains sample code and demonstrations for many of the book’s chapters, as provided by the contributors. the most interesting subject/part, that i found in this book is in PART V . Chapter 33. LCP Algorithms for Collision Detection Using CUDA . and there is this demo on the DVD , on this subject/chapter ( the application should look like this [url=“http://http.developer.nvidia.com/GPUGems3/elementLinks/33fig07.jpg”]http://http.developer.nvidia.com/GPUGems3/...nks/33fig07.jpg[/url] ) and i also found this demo on the author`s web site , available for download [url=“http://www.kipfer.de/media/GPUGems3.zip”]http://www.kipfer.de/media/GPUGems3.zip[/url]
the problem is that i cant run it, i tried running the executable files found in the /Windows folder , but i get the error : "The program can
t start because cuda.dll is missing from your computer. Try reinstalling the program to fix this problem" .
so i tried compiling the project , but i get 7 errors and 1 warning :
Error 2 error: too few arguments in function call c:\Users\gogira\Desktop\source\solver.cu 950 LCPDemo
- on this line : CUresult err = cuInit();
Error 3 error: argument of type “CUdevice” is incompatible with parameter of type “CUcontext *” c:\Users\gogira\Desktop\source\solver.cu 972 LCPDemo
-on this line : CU_SAFE_CALL( cuCtxCreate(dev) );
Error 4 error: too few arguments in function call c:\Users\gogira\Desktop\source\solver.cu 972 LCPDemo
-on this line : CU_SAFE_CALL( cuCtxCreate(dev) );
Error 5 error: too few arguments in function call c:\Users\gogira\Desktop\source\solver.cu 1101 LCPDemo
-on this line : CU_SAFE_CALL( cuCtxDetach() );
Error 6 error: identifier “cuMemAllocSystem” is undefined c:\Users\gogira\Desktop\source\solver.cu 1322 LCPDemo
-on this line : CU_SAFE_CALL( cuMemAllocSystem( (void**)&mem, s ) );
Error 7 error: identifier “cuMemFreeSystem” is undefined c:\Users\gogira\Desktop\source\solver.cu 1333 LCPDemo
-on this line : CU_SAFE_CALL( cuMemFreeSystem(mem) );
Error 8 error PRJ0019: A tool returned an error code from “Performing Custom Build Step” LCPDemo LCPDemo
-on this line : CU_SAFE_CALL( cuMemFreeSystem(mem) );
if anyone could help me on this one , please do , i really need to make this work , im studing this example for a school project . i
ve just started looking in the CudaReferenceManual , and trying to fix the errors myself…
but im also thinking the code is right , because it
s been released on a dvd and maybe i`ve got to modify some settings, or copy some files , or something …