Why Can't Cuda's Examples Makefile Find the Cuda Libraries

Can't install a cuda-accelerated library (GPU-LIBSVM)

It sounds like the library is expecting an old version of CUDA. The structure of the sample codes (GPU_Computing_SDK) changed substantially after CUDA 4.2

Try starting over with an older version of CUDA which you can find here. I would recommend choosing a cuda version from 3.2 to 4.2, and if you install that completely (driver, toolkit and SDK) you will find the folders and makefiles being referenced.

Adding path to CUDA libraries without sudo access

I am wondering if running this command is safe and does not affect other settings of the system

Yes, you'll be fine.

This command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib

only affects the process you execute it in.

It will not affect any other user's process, or any other process of yours.

Furthermore, if you log out and log in again, you will have to execute that command again. It is not "sticky"

How to create makefile CUDA so it executed in CPU to test CPU FLOPs?

Hey so the issue is you need portland group compilers in order to run your code on x86:
hxxp://www.prnewswire.com/news-releases/pgi-to-develop-compiler-based-on-nvidia-cuda-c-architecture-for-x86-platforms-103457159.html

Additionally that article says that the compiler is being demonstrated November 13-15, 2010, so I'm not sure when it will be publicly available (probably a beta version floating around). (I.e. No you can't run CUDA natively on x86 YET).

right now the easiest thing to do is write a C/C++ function that does exactly what that benchmark does (it should be VERY easy to port). There are some CUDA examples in their SDK that compare CPU to GPU (look at matrix multiplication I think), so try that first (it should basically do the exact same thing as the benchmark code, except for a 'real world' case) if you're just looking to do GPU/CPU performance.

Even easier: ask NVIDIA forums about your graphics card - they love to tell everyone their GPU vs CPU performance (just say "I have x GPU and i get y GFLOPS-what does everyone else get GPU vs CPU?").



Related Topics



Leave a reply



Submit