![]() |
![]() |
#1 |
"Patrik Johansson"
Aug 2002
Uppsala, Sweden
52×17 Posts |
![]()
I'm trying to compile mfaktc for my new graphics card. I'm using OpenSUSE Linux 11.4, so I tried to install CUDA Toolkit for OpenSUSE 11.2. But when I compile mfaktc I get:
Code:
pjoh@linux-j6ed:~/mfaktc-0.17/src> make /usr/local/cuda/bin/nvcc -I/usr/local/cuda/include/ --ptxas-options=-v --generate-code arch=compute_11,code=sm_11 --generate-code arch=compute_20,code=sm_20 --compiler-options=-Wall -c tf_72bit.cu -o tf_72bit.o In file included from /usr/local/cuda/include/cuda_runtime.h:59:0, from <command-line>:0: /usr/local/cuda/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.5 and up are not supported! make: *** [tf_72bit.o] Fel 1 pjoh@linux-j6ed:~/mfaktc-0.17/src> gcc --version gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585] Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If I downgrade, is there a risk that my hardware won't be supported? I'm using a Core i5 2500K on an ASUS P8P67 LE and graphics card ASUS Geforce GTX 560 DC 1GB. |
![]() |
![]() |
![]() |
#2 |
Dec 2010
Monticello
70316 Posts |
![]()
IIRC, this had to do with internal debug data for tools used by nvidia.
Unless you are into detailed debugging of mfaktc, I don't think it will matter if you comment out the #error directive. |
![]() |
![]() |
![]() |
#3 |
"Patrik Johansson"
Aug 2002
Uppsala, Sweden
52×17 Posts |
![]()
Thanks. It compiled alright. I'll try to run it when I get home from work this evening.
|
![]() |
![]() |
![]() |
#4 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
![]()
I tried commenting out the error lines, and it then compiled, but didn't run. If yours doesn't, you can either install an older version of the gcc, or download a current mfaktc compiled in CUDA 3.2 here:http://mersenneforum.org/mfaktc/
I got my tarball from a different place, but I'm pretty sure it's identical to the link above. Or, if your version runs, please let me know how you did it. |
![]() |
![]() |
![]() |
#5 |
"Patrik Johansson"
Aug 2002
Uppsala, Sweden
52×17 Posts |
![]()
Both my compiled executable and the one downloaded from your link give the following error:
Code:
pjoh@linux-j6ed:~/mfaktc-0.17> ./mfaktc.exe -st mfaktc v0.17 (64bit built) cudaSetDevice(0) failed cudaGetLastError() returned 38: no CUDA-capable device is detected Is Developer Drivers for Linux something that should be installed with CUDA, and could a corrupt installation be the problem? |
![]() |
![]() |
![]() |
#6 |
Dec 2010
Monticello
5×359 Posts |
![]()
I don't recall needing developer drivers...just regular ones.
But I do recall having to install the CUDA toolkit from Nvidia, and drivers for the card. |
![]() |
![]() |
![]() |
#7 |
Sep 2008
Kansas
22·32·7·13 Posts |
![]()
I'm running:
OpenSUSE 11.4 gcc 4.5.1 nVidia Driver 280.13 mfaktc 0.17 CUDA Toolkit 4.0 No problems. I'm getting about 190-200M/s (if those are good numbers) using i5 and GTX 460. Two points. 1. Make sure you use driver 280.xx 2. Comment out the error message as mentioned above. Last fiddled with by RichD on 2011-09-27 at 00:28 Reason: forgot to include toolkit version |
![]() |
![]() |
![]() |
#8 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
![]()
Yes, very good numbers. 1G or 768M 460? I have the latter at a 12% overclock and get 205M/s with full cpu support, 170-185M/s when I set the affinity to the equivalent of one P95 thread.
|
![]() |
![]() |
![]() |
#9 |
"Patrik Johansson"
Aug 2002
Uppsala, Sweden
52·17 Posts |
![]()
I finally managed to get the installation working. The problem I had before was that I didn't manage to uninstall the noveau video driver that openSuse 11.4 was using.
On the nvidia driver download page, I finally found an additional information tab which had a link to a howto for suse users. That howto explained that there was a software repository at download.nvidia.com (/opensuse/11.4) that could be used instead of the .run file. Then I installed the packages the usual way using Yast. Then I rebooted to get the old driver out of the kernel. After that I installed the GPU Computing SDK. When compiling the examples included I had the same problems again (mentioned in the first post) regarding gcc-4.5 and solved it just as Christenson suggested. After creating a missing link Code:
libglut.so -> libglut.so.3 The documentation file at Cuda Toolkit, CUDA_C_Getting_Started_Linux.pdf, was also very helpful. Last fiddled with by patrik on 2012-01-16 at 06:56 |
![]() |
![]() |
![]() |
#10 |
Sep 2008
Kansas
CCC16 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linux install of CUDA toolkit for GT 430 card, maybe… | ewmayer | GPU Computing | 66 | 2015-01-10 08:46 |
TF fetching/reporting toolkit for Linux | swl551 | PrimeNet | 20 | 2014-06-19 15:00 |
AVX CPU LL vs CUDA LL | nucleon | GPU Computing | 11 | 2012-01-04 17:52 |
CUDA P-1? | nucleon | GPU Computing | 2 | 2010-11-17 17:52 |
NVIDIA CUDA C toolkit for G80 GPU available | dsouza123 | Programming | 2 | 2007-02-18 12:50 |