Ubuntu – When will CUDA support ubuntu 18.10

18.10cudadriversnvidiaunsupported-packages

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.

Best Answer

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!

Related Question