Skip to content

Commit

Permalink
doc: update cuda installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Jan 16, 2025
1 parent 86fd1cc commit 1216095
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions root/.vim/doc/c-cpp-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ https://apt.llvm.org/
https://docs.nvidia.com/cuda/cuda-c-programming-guide/
https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/

CUDA 安装: https://developer.nvidia.com/cuda-toolkit-archive

|nvidia-docker|

cuda对gcc/clang存在版本要求,例如
Expand All @@ -263,6 +261,18 @@ cuda 12.1
gcc versions later than 12 are not supported for cuda 12.1
<

安装CUDA ~

https://developer.nvidia.com/cuda-toolkit-archive

第一类方法: `apt install nvidia-cuda-toolkit`,安装后nvcc位于 `/usr/bin/nvcc`
第二类方法:添加apt源后 `apt install cuda`,安装后nvcc位于 `/usr/local/cuda-X-Y/bin/nvcc`
第三类方法: 下载runfile安装。

卸载CUDA ~

https://docs.nvidia.com/cuda/archive/11.8.0/cuda-installation-guide-linux/index.html#handle-uninstallation

GPU监控 ~

*gpustat* `pip install gpustat`
Expand Down
2 changes: 2 additions & 0 deletions root/.vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if has('autocmd') " vim-tiny does not have autocmd
let g:jdtls_java_runtimes = get(g:, 'jdtls_java_runtimes', [{'name': 'JavaSE-11', 'path': '/usr/lib/jvm/java-11-openjdk-amd64'}, {'name': 'JavaSE-17', 'path': '/usr/lib/jvm/java-17-openjdk-amd64'}])
" speed up loading
let g:python3_host_prog = get(g:, 'python3_host_prog', '/usr/bin/python3')
" WARN: DO NOT use copilot provider, it will cause abuse.
let g:avante_provider = get(g:, 'avante_provider', 'openai') " openai, claude
let g:avante_auto_suggestions_provider = get(g:, 'avante_auto_suggestions_provider', 'openai') " openai , claude
runtime clipboard_config.lua
Expand Down Expand Up @@ -74,6 +75,7 @@ if has('autocmd') " vim-tiny does not have autocmd
let g:python_formatter = get(g:, 'python_formatter', 'black')
let g:python_lsp = get(g:, 'python_lsp', 'pyright')
let g:sql_type_default = 'mysql'
" copilot.vim, avante.nvim, fittencode, tabnine-nvim, codeium.vim
let g:ai_suggestion = get(g:, 'ai_suggestion', 'copilot.vim')

" gtags-cscope | cscope
Expand Down

0 comments on commit 1216095

Please sign in to comment.