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

Commit

Permalink
Merge pull request #152 from JuliaGPU/tb/compilecache
Browse files Browse the repository at this point in the history
Fix compilecache-like functionality on 1.3
  • Loading branch information
maleadt authored Sep 10, 2019
2 parents eb5cf8e + 4a0269b commit 07fcbf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CUDAdrv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ include("deprecated.jl")

function __init__()
if !ispath(libcuda) || version() != libcuda_version
cachefile = Base.compilecache(Base.PkgId(CUDAdrv))
cachefile = if VERSION >= v"1.3-"
Base.compilecache_path(Base.PkgId(CUDAdrv))
else
abspath(DEPOT_PATH[1], Base.cache_file_entry(Base.PkgId(CUDAdrv)))
end
rm(cachefile)
error("Your set-up changed, and CUDAdrv.jl needs to be reconfigured. Please load the package again.")
end
Expand Down

0 comments on commit 07fcbf1

Please sign in to comment.