Comments (1)
Please try
diff --git a/src/discovery.jl b/src/discovery.jl
index 7ece7d6..2fa3af4 100644
--- a/src/discovery.jl
+++ b/src/discovery.jl
@@ -349,25 +350,24 @@ function find_host_compiler(toolkit_version=nothing)
end
# check compiler compatibility
+ msvc_path, msvc_ver = nothing, nothing
if toolkit_version !== nothing
- found_compatible_compiler = false
- for ver in sort(collect(keys(msvc_list)), rev=true) # search the higest version first
+ for ver in sort(collect(keys(msvc_list)), rev=true) # search the highest version first
if parse(Int, string(ver.major,ver.minor)) in cuda_msvc_db[toolkit_version]
- host_compiler, host_version = msvc_list[ver], ver
- found_compatible_compiler = true
+ msvc_path, msvc_ver = msvc_list[ver], ver
break
end
end
- if !found_compatible_compiler
- error("Visual Studio C++ compiler $msvc_ver is not compatible with CUDA $toolkit_version")
+ if msvc_ver == nothing
+ error("None of the available Visual Studio C++ compilers ($(join(keys(msvc_list), ", "))) is compatible with CUDA $toolkit_version")
end
- return host_compiler, host_version
else
- # take the first found host, which will be the higest version found
+ # take the first found host, which will be the highest version found
host_pair = first(sort(collect(msvc_list), by=x->x[1], rev=true))
- host_compiler, host_version = last(host_pair), first(host_pair)
- return host_compiler, host_version
+ msvc_path, msvc_ver = last(host_pair), first(host_pair)
end
Quite annoying to program a dynamic language without being able to run the code.
from cudaapi.jl.
Related Issues (20)
- Remove warning HOT 3
- @runtime_ccall thread safety HOT 5
- find_cuda_library("cudnn",tk) returns nothing HOT 4
- could not load library: "C:\Users\USER\.julia\artifacts\~~~\bin\cudnn64_7.dll" HOT 2
- Could not find nvToolsExt (libnvToolsExt.dylib.1.0 or libnvToolsExt.dylib.1) in /Users/imac/.julia/artifacts/b502baf54095dff4a69fd6aba8667124583f6929/lib HOT 1
- ERROR: Could not find a suitable GCC HOT 4
- Unable to find cudnn HOT 9
- Cannot find cuDNN that was installed via anaconda (without sudo) HOT 4
- Fix hardcoded CUDA versions to folder name autodetection? HOT 2
- macOS CI for CUDA 10+ HOT 1
- CI does not spot: libcudadevrt.lib is actually cudadevrt.lib on windows HOT 4
- find_library word_size
- Longer term goal with other CUDA libraries HOT 4
- Finding 8.0 files instead of 10.1 ones HOT 5
- CUDA discovery failing with 1.3.0-rc1 HOT 1
- Discovery fails if CUDA env vars are set to empty variable HOT 2
- Float64 HOT 1
- CUDA version warning throws MethodError: no method matching version()
- Sort paths from CUDAapi.find_toolkit() in the descending order? HOT 2
- find_host_compiler was removed, but is still exported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudaapi.jl.