Make the changes backward compatible
This commit is contained in:
parent
7804d980b2
commit
c67e33f387
@ -2,6 +2,10 @@ module CUDA
|
||||
|
||||
using ..CuArrays
|
||||
|
||||
CuArrays.libcudnn != nothing && include("cudnn.jl")
|
||||
if isdefined(CuArrays, :libcudnn_handle)
|
||||
handle() = CuArrays.libcudnn_handle[]
|
||||
else
|
||||
handle() = CuArrays.CUDNN.handle()
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user