Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5252  / 3 Years ago, sat, may 29, 2021, 6:15:58

I need to use CUDA for work and have upgraded Ubuntu without checking (my bad) whether CUDA supports Ubuntu 18.10, turns out it doesn't.



The last supported version is Ubuntu 18.04.5.
When do you think CUDA will support Ubuntu 18.10 ? And if it'll take a while, what would be the best way to downgrade my version to 18.04 ?



Thanks for your time.


More From » drivers

 Answers
4

I have successfully installed CUDA 10.0 on Kubuntu 18.10. You need the runfile and gcc version 6.




  1. Go to the CUDA download site. Click on Linux -> x86_64 -> Ubuntu -> 18.04 (although we have 18.10) -> runfile (local).


  2. Open a new terminal environment with CtrlAltF2 (I think on Ubuntu the default windows environment is on F7, while in Kubuntu is on F1) and login as root.


  3. Stop the display manager in order to stop the X server and install the drivers successfully. For me, on Kubuntu 18.10 that was achieved with:

    service sddm stop

    To find out your display manager, you can try running

    pgrep -l dm


  4. Run the CUDA installer with the override option:

    ./cuda_10.0.130_410.48_linux --override

    The override option will ignore the compiler version check. CUDA requires gcc version 6, but the installation goes fine with gcc version 8 too. The override option allow us to proceed using a later version of the compiler. Install the drivers, the toolkit and the samples too.


  5. Restart the desktop manager

    service sddm start

    and switch again to the desktop environment.


  6. Add the CUDA include directory and the CUDA library directory to your .bashrc file. I have installed CUDA under /usr/local/cuda-10.0, so I had to add
    export PATH=$PATH:/usr/local/cuda-10.0/bin
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64/


  7. Go to the samples directory and compile them. This time gcc version 6 is required. Install it

    sudo apt-get install g++-6

    and compile the samples using g++ version 6 as the compiler

    make HOST_COMPILER=g++-6




Done!


[#6711] Sunday, May 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sertold

Total Points: 445
Total Questions: 123
Total Answers: 113

Location: Burundi
Member since Wed, Sep 28, 2022
2 Years ago
;