CUDA: Difference between revisions

From David's Wiki
Line 4: Line 4:
[https://developer.nvidia.com/cuda-toolkit CUDA Toolkit]
[https://developer.nvidia.com/cuda-toolkit CUDA Toolkit]


{{hidden | Details |
See [https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation CUDA Ubuntu Installation]
See [https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation CUDA Ubuntu Installation]
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 31: Line 32:
[[File:Pycharm LD LIBRARY PATH config.png| 200x200px]]
[[File:Pycharm LD LIBRARY PATH config.png| 200x200px]]
[[File:Pycharm LD LIBRARY PATH console config.png| 200x200px]]
[[File:Pycharm LD LIBRARY PATH console config.png| 200x200px]]
}}


==GCC Versions==
==GCC Versions==

Revision as of 21:15, 6 July 2022

Installation

Ubuntu

CUDA Toolkit

Details
{{{2}}}

GCC Versions

nvcc sometimes only supports older gcc/g++ versions.
To make it use those by default, create the following symlinks:

  • sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc
  • sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++

Alternatively, you can use -ccbin and point to your gcc:

-ccbin /usr/local/cuda/bin/gcc

References