Skip to content

Commit 36f5310

Browse files
committed
docs: add powershell commands
1 parent f9fb63b commit 36f5310

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/guide/CUDA.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,15 @@ export CUDACXX=/usr/local/cuda-12.4/bin/nvcc
8989
export CUDA_PATH=/usr/local/cuda-12.4
9090
```
9191

92-
```cmd [Windows]
92+
```cmd [Windows (cmd)]
9393
set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe
9494
set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
9595
```
96+
97+
```cmd [Windows (PowerShell)]
98+
$env:CUDACXX="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe"
99+
$env:CUDA_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4"
100+
```
96101
:::
97102

98103
Then run the build command again to check whether setting the `CUDACXX` and `CUDA_PATH` environment variables fixed the issue.
@@ -110,9 +115,13 @@ To do this, set the `NODE_LLAMA_CPP_CMAKE_OPTION_CMAKE_GENERATOR_TOOLSET` enviro
110115
export NODE_LLAMA_CPP_CMAKE_OPTION_CMAKE_GENERATOR_TOOLSET=$CUDA_PATH
111116
```
112117

113-
```cmd [Windows]
118+
```cmd [Windows (cmd)]
114119
set NODE_LLAMA_CPP_CMAKE_OPTION_CMAKE_GENERATOR_TOOLSET=%CUDA_PATH%
115120
```
121+
122+
```cmd [Windows (PowerShell)]
123+
$env:NODE_LLAMA_CPP_CMAKE_OPTION_CMAKE_GENERATOR_TOOLSET=$env:CUDA_PATH
124+
```
116125
:::
117126

118127
Then run the build command again to check whether setting the `CMAKE_GENERATOR_TOOLSET` cmake option fixed the issue.

0 commit comments

Comments
 (0)