You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(Vulkan): context creation edge cases
* fix: don't share loaded shared libraries between backends
* fix(`inspect gpu` command): validate the loaded GPU type before printing info
* fix: more CUDA compilation issues
* fix: remove unused dependency
* docs: change CUDA 12.2 to CUDA 12.4
To build `node-llama-cpp` with any of these options, set an environment variable of an option prefixed with `NODE_LLAMA_CPP_CMAKE_OPTION_`.
80
80
81
81
### Fix the `Failed to detect a default CUDA architecture` Build Error
82
-
To fix this issue you have to set the `CUDACXX` environment variable to the path of the `nvcc` compiler.
82
+
To fix this issue you have to set the `CUDACXX` environment variable to the path of the `nvcc` compiler,
83
+
and the `CUDA_PATH` environment variable to the path of the CUDA home directory that contains the `nvcc` compiler.
83
84
84
-
For example, if you have installed CUDA Toolkit 12.2, you have to run a command like this:
85
+
For example, if you have installed CUDA Toolkit 12.4, you have to run a command like this:
85
86
::: code-group
86
87
```shell [Linux]
87
-
export CUDACXX=/usr/local/cuda-12.2/bin/nvcc
88
+
export CUDACXX=/usr/local/cuda-12.4/bin/nvcc
89
+
export CUDA_PATH=/usr/local/cuda-12.4
88
90
```
89
91
90
92
```cmd [Windows]
91
-
set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin\nvcc.exe
93
+
set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe
94
+
set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
92
95
```
93
96
:::
94
97
95
-
Then run the build command again to check whether setting the `CUDACXX` environment variable fixed the issue.
98
+
Then run the build command again to check whether setting the `CUDACXX`and `CUDA_PATH`environment variables fixed the issue.
96
99
97
100
### Fix the `The CUDA compiler identification is unknown` Build Error
98
101
The solution to this error is the same as [the solution to the `Failed to detect a default CUDA architecture` error](#fix-the-failed-to-detect-a-default-cuda-architecture-build-error).
0 commit comments