mirror of
https://github.com/RYDE-WORK/ktransformers.git
synced 2026-02-03 21:20:33 +08:00
Update README.md
Set the reminder to set CUDA_HOME and CUDA_PATH in the README to the "Quick Start" section under "Install CUDA".
This commit is contained in:
parent
0f054fe4ff
commit
ea1143e54e
19
README.md
19
README.md
@ -69,6 +69,25 @@ Some preparation:
|
|||||||
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
|
||||||
export CUDA_PATH=/usr/local/cuda
|
export CUDA_PATH=/usr/local/cuda
|
||||||
``` -->
|
``` -->
|
||||||
|
- Set CUDA_HOME (for linux) or CUDA_PATH (for windows)
|
||||||
|
|
||||||
|
For Linux, please add the following environment variables (suppose cuda is installed in "/usr/local/cuda").
|
||||||
|
```sh
|
||||||
|
export CUDA_HOME=/usr/local/cuda
|
||||||
|
export PATH=/usr/local/cuda/bin:$PATH
|
||||||
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
|
||||||
|
```
|
||||||
|
|
||||||
|
For Windows, please add the CUDA_PATH to the "System variables" section of "Environment Variables" (suppose cuda is installed in "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.X").
|
||||||
|
- Variable name: "CUDA_PATH"
|
||||||
|
- Variable value: "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.X"
|
||||||
|
|
||||||
|
Then append the following paths to the "Path" variable.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp
|
||||||
|
```
|
||||||
|
|
||||||
- Linux-x86_64 with gcc, g++ and cmake
|
- Linux-x86_64 with gcc, g++ and cmake
|
||||||
```sh
|
```sh
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user