mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2011-09-20, 20:12   #1
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

6508 Posts
Default CUDA Toolkit for OpenSUSE 11.2--gcc 4.5 and up are not supported

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.
What is the best way to resolve this? Downgrading to OpenSUSE 11.2? Or install a CUDA toolkit for a different Linux distribution on my OpenSUSE computer?

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.
patrik is offline   Reply With Quote
Old 2011-09-20, 21:44   #2
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5·359 Posts
Default

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.
Christenson is offline   Reply With Quote
Old 2011-09-21, 04:36   #3
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

1101010002 Posts
Default

Thanks. It compiled alright. I'll try to run it when I get home from work this evening.
patrik is offline   Reply With Quote
Old 2011-09-21, 06:55   #4
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

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.
Dubslow is offline   Reply With Quote
Old 2011-09-21, 18:30   #5
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

23×53 Posts
Default

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
There was a file, Developer Drivers for Linux (270.41.19), on the NVIDIA CUDA download page. The first time I tried to install it, my screen went blank, and I had to run parts of the Linux installation again before I got it to work again. The next time I tried to install it, I got a message that it was already installed.

Is Developer Drivers for Linux something that should be installed with CUDA, and could a corrupt installation be the problem?
patrik is offline   Reply With Quote
Old 2011-09-22, 00:18   #6
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5×359 Posts
Default

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.
Christenson is offline   Reply With Quote
Old 2011-09-27, 00:25   #7
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

11·172 Posts
Default

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
RichD is offline   Reply With Quote
Old 2011-09-27, 00:44   #8
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

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.
Dubslow is offline   Reply With Quote
Old 2012-01-16, 06:55   #9
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

23×53 Posts
Default

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
in /usr/lib64, I managed to compile enough of the tests for the SDK to verify the installation (though it still failed missing mpi.h later).

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
patrik is offline   Reply With Quote
Old 2012-04-07, 03:50   #10
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

11·172 Posts
Default

I've also found a How To guide at:

http://www.suse.de/~sndirsch/nvidia-...ler-HOWTO.html
RichD is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 15:18.

Tue Dec 1 15:18:46 UTC 2020 up 82 days, 12:29, 3 users, load averages: 1.95, 1.92, 1.85

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.