Hi everyone,
I’m trying to set up CUDA on my desktop pc, the configuration of which is as follows: Intel Core i7 920 CPU, 3 GB DDR3 SDRAM, nVidia GeForce GTX295 GPU.
I am using the PAE kernel suitably downgraded to allow the nvidia driver to work (Fedora 11: X Windows configuration gets messed up after reboot (X server crashing) - Page 2)
[root@farpoint ~]# uname -r
2.6.29.6-217.2.3.fc11.i686.PAE
The nvidia driver is working fine…
[root@farpoint ~]# rpm -qa |grep nvidia
nvidia-x11-drv-190.18-1.fc11.i586
and I’ve installed the cuda toolkit, but when I run make for the SDK, I get an error which I’ve been unable to fix:
[root@farpoint C]# pwd
/opt/NVIDIA_GPU_Computing_SDK/C
[root@farpoint C]# make
make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'
make -C src/MonteCarloMultiGPU/
make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'
/usr/local/cuda/bin/../include/math_functions.h:71: error: inline function ‘double fabs(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:73: error: inline function ‘float fabsf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:167: error: inline function ‘double floor(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:169: error: inline function ‘float floorf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:257: error: inline function ‘long int lrint(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:259: error: inline function ‘long int lrintf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:262: error: inline function ‘long long int llrint(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:264: error: inline function ‘long long int llrintf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:272: error: inline function ‘double ceil(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:274: error: inline function ‘float ceilf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:408: error: inline function ‘int __finite(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:412: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:417: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:179: error: inline function ‘double ceil(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:182: error: inline function ‘double fabs(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:185: error: inline function ‘double floor(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:196: error: inline function ‘int __finite(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:326: error: inline function ‘long int lrint(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:327: error: inline function ‘long long int llrint(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:179: error: inline function ‘float ceilf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:182: error: inline function ‘float fabsf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:185: error: inline function ‘float floorf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:326: error: inline function ‘long int lrintf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:327: error: inline function ‘long long int llrintf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathinline.h:128: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:134: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:140: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathinline.h:473: error: inline function ‘double fabs(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:475: error: inline function ‘float fabsf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:530: error: inline function ‘double floor(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:530: error: inline function ‘float floorf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:548: error: inline function ‘double ceil(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:548: error: inline function ‘float ceilf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:668: error: inline function ‘long int lrintf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:673: error: inline function ‘long int lrint(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:691: error: inline function ‘long long int llrintf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:696: error: inline function ‘long long int llrint(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:728: error: inline function ‘int __finite(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:442: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
make[1]: *** [obj/release/MonteCarlo_SM10.cu_sm_10.o] Error 255
make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'
make: *** [src/MonteCarloMultiGPU/Makefile.ph_build] Error 2
[root@farpoint C]#
Google search didn’t reveal anything useful, so I decided I’d post it here. I’d appreciate any suggestions and advice to help me fix this.
Thanks in advance.
Cheers!
Vivek