Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Warn about unsupported compiler versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Aug 21, 2018
1 parent c5e9261 commit 7835f7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/discovery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ function find_host_compiler(toolkit_version=nothing)

if toolkit_version == nothing || gcc_supported(gcc_ver, toolkit_version)
push!(gcc_possibilities, (gcc_path, gcc_ver))
elseif toolkit_version != nothing
@warn "Ignoring $gcc_path v$gcc_ver which isn't supported by CUDA $toolkit_version"
end
end

Expand Down Expand Up @@ -442,6 +444,8 @@ function find_host_compiler(toolkit_version=nothing)
if msvc_supported(ver, toolkit_version)
msvc_path, msvc_ver = msvc_list[ver], ver
break
else
@warn "Ignoring $msvc_path v$msvc_ver which isn't supported by CUDA $toolkit_version"
end
end
if msvc_ver == nothing
Expand Down

0 comments on commit 7835f7b

Please sign in to comment.