소개

Data

HOME > RESOURCES > Data 40

How to enable the CUDA on OpenSUSE 11.2 (64-bit)
추형석   2009.11.25   6369

There are some gcc version issues to run the CUDA programs. Since the Brand-new Linux OS basically installs the gcc version 4.4, it would be impossible to compile CUDA SDKs or CUDA programs. For thoes program in order to be compiled, you have to figure out follow things are conformed. * CUDA toolkit have already installed in the /usr/local/cuda * Also the CUDA available driver 1. Add your bash profile (in OpenSUSE .bashrc file at your home folder) export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 2. Add the path on the /etc/ld.so.conf /usr/local/cuda/lib /usr/local/cuda/lib64 3. Install the gcc version 4.3 4. Make new link for the gcc version 4.3 $> mkdir /opt/gcc43 $> ln -s /usr/bin/gcc-4.3 /opt/gcc43/gcc $> ln -s /usr/bin/g++-4.3 /opt/gcc43/g++ 5. To compile CUDA SDK NVCCFLAGS := (black) <- maybe in ~/NVIDIA_GPU_Computing_SDK/C/common : line 107 replace this by NVCCFLAGS := --compiler-bindir /opt/gcc43 If you fail to compile CUDA, send me e-mail. e-mail : cnehfdl (at) gmail.com

Comment









List


42 2009.12.04
41 2009.11.26
40 2009.11.25
39 2009.11.23
38 2009.11.20