From cffd40f60211ef18cd5ab9cb27d1b5208f460e57 Mon Sep 17 00:00:00 2001 From: zhang_lin66 Date: Fri, 27 Jun 2025 06:01:25 +0000 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E6=80=A7=EF=BC=9A-=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=B7=E4=BE=8B=E8=BF=90=E8=A1=8C=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E3=80=81=E8=BF=90=E8=A1=8C=E7=BB=93=E6=9E=9C=E4=B8=8D?= =?UTF-8?q?=E7=AC=A6=EF=BC=9Bgpu=E7=8E=AF=E5=A2=83=E8=BF=98=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=A2=9E=E5=8A=A0cuda=5Fhome=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F,=E5=90=A6=E5=88=99=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=8A=A5=E9=94=99export=20CUDA=5FHOME=3D/usr/local/cuda?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_lin66 --- install/mindspore_gpu_install_conda.md | 1 + install/mindspore_gpu_install_conda_en.md | 1 + install/mindspore_gpu_install_nightly.md | 1 + install/mindspore_gpu_install_nightly_en.md | 1 + install/mindspore_gpu_install_pip.md | 1 + install/mindspore_gpu_install_pip_en.md | 1 + 6 files changed, 6 insertions(+) diff --git a/install/mindspore_gpu_install_conda.md b/install/mindspore_gpu_install_conda.md index 8725e4c956..0f08d90a2e 100644 --- a/install/mindspore_gpu_install_conda.md +++ b/install/mindspore_gpu_install_conda.md @@ -174,6 +174,7 @@ conda install mindspore -c mindspore -c conda-forge ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` 如果之前安装了其他CUDA版本,或者CUDA安装路径不同,只需替换以上命令中的`/usr/local/cuda-11.6`为当前安装的CUDA路径。 diff --git a/install/mindspore_gpu_install_conda_en.md b/install/mindspore_gpu_install_conda_en.md index b0cf741801..fb0ae2d542 100644 --- a/install/mindspore_gpu_install_conda_en.md +++ b/install/mindspore_gpu_install_conda_en.md @@ -174,6 +174,7 @@ Before running MindSpore GPU version, please make sure that installation path of ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` If a different version of CUDA have been installed or the CUDA installation path is different, replace `/usr/local/cuda-11.6` in the above command with the currently installed CUDA path. diff --git a/install/mindspore_gpu_install_nightly.md b/install/mindspore_gpu_install_nightly.md index 3d87f7c07f..53852cbc88 100644 --- a/install/mindspore_gpu_install_nightly.md +++ b/install/mindspore_gpu_install_nightly.md @@ -190,6 +190,7 @@ pip install mindspore-dev -i https://pypi.tuna.tsinghua.edu.cn/simple ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` 如果之前安装了其他CUDA版本,或者CUDA安装路径不同,只需替换以上命令中的`/usr/local/cuda-11.6`为当前安装的CUDA路径。 diff --git a/install/mindspore_gpu_install_nightly_en.md b/install/mindspore_gpu_install_nightly_en.md index 7b580eb49a..951274a617 100644 --- a/install/mindspore_gpu_install_nightly_en.md +++ b/install/mindspore_gpu_install_nightly_en.md @@ -190,6 +190,7 @@ Before running MindSpore GPU version, please make sure that installation path of ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` If a different version of CUDA have been installed or the CUDA installation path is different, replace `/usr/local/cuda-11.6` in the above command with the currently installed CUDA path. diff --git a/install/mindspore_gpu_install_pip.md b/install/mindspore_gpu_install_pip.md index 268121e23b..91e9c209a9 100644 --- a/install/mindspore_gpu_install_pip.md +++ b/install/mindspore_gpu_install_pip.md @@ -195,6 +195,7 @@ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/${MS_VERSION}/Mi ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` 如果之前安装了其他CUDA版本或者CUDA安装路径不同,只需替换以上命令中的`/usr/local/cuda-11.6`为当前安装的CUDA路径。 diff --git a/install/mindspore_gpu_install_pip_en.md b/install/mindspore_gpu_install_pip_en.md index b6d2cbe22a..fdf0685dfd 100644 --- a/install/mindspore_gpu_install_pip_en.md +++ b/install/mindspore_gpu_install_pip_en.md @@ -195,6 +195,7 @@ Before running MindSpore GPU version, please make sure that installation path of ```bash export PATH=/usr/local/cuda-11.6/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.6/lib64:$LD_LIBRARY_PATH +export CUDA_HOME=/usr/local/cuda-11.6 ``` If a different version of CUDA have been installed or the CUDA installation path is different, replace `/usr/local/cuda-11.6` in the above command with the currently installed CUDA path. -- Gitee