diff --git a/root/.vim/doc/c-cpp-cuda.txt b/root/.vim/doc/c-cpp-cuda.txt index 5946e53..89c33ba 100644 --- a/root/.vim/doc/c-cpp-cuda.txt +++ b/root/.vim/doc/c-cpp-cuda.txt @@ -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存在版本要求,例如 @@ -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` diff --git a/root/.vim/vimrc b/root/.vim/vimrc index 68414fa..ac655d0 100644 --- a/root/.vim/vimrc +++ b/root/.vim/vimrc @@ -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 @@ -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