Ask Your Question
2

Install CUDA in Fedora 19 with Bumblebee

asked 2013-10-02 00:07:46 -0600

arkiaz gravatar image

Hi,

I am running a Fedora 19 laptop with Nvidia GeForce GT 630M GPU. I have installed BumbleBee as per the instructions in Bumblebee with the NVIDIA proprietary drivers

Details:

Kernel Version : 3.11.1-200.fc19.x86_64
Bumblebee : bumblebeed (Bumblebee) 3.2.1
Nvidia : 319.49-1

Now I need to install CUDA (possibly 5.5). I heard there are lot of issues with CUDA installation on Fedora. Can anyone point me to a perfectly working guide?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-01-09 13:11:17 -0600

I successfully install cuda-5.5 on fedora 19 with kernel 3.12.6-200.fc19.x86_64.

I have a GEFORCE GT540M with bumblebee and bumblebee-nvidia driver (v331.20).

I have gcc-4.8.2 on my system so I had to install gcc-4.6.4. I don't want to uninstall the original compiler so I put gcc-4.6.4 in a specific folder (/opt/gcc-4.6.4) and I create an alias to modify the $PATH and $LD_LIBRARY_PATH and temporary overwrite the 4.8.2 version.

alias gcc464='export PATH=/opt/gcc-4.6.4/bin:$PATH; export LD_LIBRARY_PATH=/opt/gcc-4.6.4/lib:/opt/gcc-4.6.4/lib64:$LD_LIBRARY_PATH'

Then I downloaded the cuda_5.5.22_linux_64.run file for cuda-5.5 (on NVIDIA page) and move into Downloads directory

sudo -s
cd Downloads

I loaded the gcc464 environment and extracted the content of the main .run file

gcc464
sh cuda_5.5.22_linux_64.run -extract=$HOME/Downloads
ll
   cuda-linux64-rel-5.5.22-16488124.run
   cuda-samples-linux-5.5.22-16488124.run
   NVIDIA-Linux-x86_64-319.37.run

I have three .run files now. I don't want to install the proprietary drivers. So:

./cuda-linux64-rel-5.5.22-16488124.run

I follow the instructions on the terminal (I choose to put cuda-5.5 in /opt for example) and cuda-toolkit is installed.

I want to install also the samples to check the system. So:

./cuda-samples-linux-5.5.22-16488124.run

I follow again the instructions and choose the right cuda folder (/opt/cuda-5.5/samples and /opt/cuda-5.5 in my case).

Then I copied the original samples (contained in /opt/cuda-5.5/samples) in my Documents folder and change the write/read permissions to do some experiments.

Every time I want to use cuda I have to load the gcc464 environment and put optirun before the nvcc command. But it works for me.

edit flag offensive delete link more

Comments

How did you install gcc-4.6.4 ?

sparrox gravatar imagesparrox ( 2014-01-09 16:50:43 -0600 )edit

+1 - Hi, thank you for your help. Please tell me how you installed gcc 4.6.4.

arkiaz gravatar imagearkiaz ( 2014-01-30 00:20:02 -0600 )edit
0

answered 2017-10-06 16:53:57 -0600

alfC gravatar image

Follow the instructions in

https://developer.nvidia.com/cuda-dow...os=Linux&targetarch=x8664&targetdistro=Fedora&targetversion=25&targettype=rpmnetwork

sudo dnf install http://developer.download.nvidia.com/compute/cuda/repos/fedora25/x86_64/cuda-repo-fedora25-9.0.176-1.x86_64.rpm

now the whole CUDA toolkit is available to dnf.

sudo dnf search cuda
edit flag offensive delete link more
0

answered 2013-10-25 03:32:49 -0600

rafee gravatar image

Ok, even though I came here looking for answer to the same question, one thing is I am quite sure of; you can't install CUDA toolkit with Bumblebee Nvidia driver. You have to use official proprietary driver. And another problem I have heard, CUDA toolkit is compiled with older GCC version, probably 4.7. So you can't use CUDA toolkit on fedora 19 directly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-02 00:07:46 -0600

Seen: 1,894 times

Last updated: Oct 06 '17