Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Use better APIs for some minor things.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Dec 13, 2017
1 parent 4175c07 commit e5b0a57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function llvm_support(version)
@debug("Using LLVM $version")

InitializeAllTargets()
"nvptx" in LLVM.name.(collect(targets())) ||
haskey(targets(), "nvptx") ||
error("Your LLVM does not support the NVPTX back-end. Fix this, and rebuild LLVM.jl and CUDAnative.jl")

target_support = CUDAapi.devices_for_llvm(version)
Expand Down Expand Up @@ -120,7 +120,9 @@ function main()
## gather info

config[:julia_version] = VERSION
config[:julia_llvm_version] = VersionNumber(Base.libllvm_version)
config[:julia_llvm_version] = VERSION >= v"0.7.0-DEV.421" ?
Base.libllvm_version :
VersionNumber(Base.libllvm_version)

config[:llvm_version] = LLVM.version()
llvm_targets, llvm_isas = llvm_support(config[:llvm_version])
Expand Down

0 comments on commit e5b0a57

Please sign in to comment.