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
# this can only happen with a local toolkit, but let's always check to be sure
167
-
if local_toolkit
168
-
@error"""You are using a local CUDA $(Base.thisminor(runtime)) toolkit, but CUDA.jl was precompiled for CUDA $(Base.thisminor(toolkit_version)). This is unsupported.
169
-
Call `CUDA.set_runtime_version!` to update the CUDA version to match your local installation."""
170
-
else
171
-
@error"""You are using CUDA $(Base.thisminor(runtime)), but CUDA.jl was precompiled for CUDA $(Base.thisminor(toolkit_version)).
160
+
# ensure the loaded runtime matches the artifact we were compiled against
161
+
if!local_toolkit
162
+
if CUDA_Runtime_jll.host_platform["cuda"] =="none"
163
+
@error"""CUDA.jl was precompiled without knowing the CUDA toolkit version. This is unsupported.
164
+
You should either precompile CUDA.jl in an environment where the CUDA driver is available,
165
+
or call `CUDA.set_runtime_version!` to specify which CUDA version to use at run time."""
166
+
_initialization_error[] ="Precompiled without CUDA toolkit version"
0 commit comments