Ask Your Question

Install CUDA in Fedora 19 with Bumblebee

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

arkiaz gravatar image


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


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

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

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

sh -extract=$HOME/Downloads

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


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:


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


How did you install gcc-4.6.4 ?

sparrox gravatar imagesparrox ( 2014-01-09 16:50:43 -0500 )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 -0500 )edit

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

alfC gravatar image

Follow the instructions in

sudo dnf install

now the whole CUDA toolkit is available to dnf.

sudo dnf search cuda
edit flag offensive delete link more

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

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


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

Seen: 1,898 times

Last updated: Oct 06 '17