File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,15 @@ export CUDACXX=/usr/local/cuda-12.4/bin/nvcc
8989export CUDA_PATH=/usr/local/cuda-12.4
9090```
9191
92- ``` cmd [Windows]
92+ ``` cmd [Windows (cmd) ]
9393set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe
9494set 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
98103Then 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
110115export NODE_LLAMA_CPP_CMAKE_OPTION_CMAKE_GENERATOR_TOOLSET=$CUDA_PATH
111116```
112117
113- ``` cmd [Windows]
118+ ``` cmd [Windows (cmd) ]
114119set 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
118127Then run the build command again to check whether setting the ` CMAKE_GENERATOR_TOOLSET ` cmake option fixed the issue.
You can’t perform that action at this time.
0 commit comments