Skip to content

Commit 2cf3532

Browse files
committed
Keep full compatibility between CUDA v5 and v6
1 parent 4a142dd commit 2cf3532

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ext/ReactantCUDAExt.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ using Reactant.Ops: @opcall
1313
using Enzyme
1414
using Adapt: Adapt, adapt
1515
using CUDA: CUDA, CuDim, DenseCuArray, unsafe_cached_load, CUDACore
16+
# Compatibility for CUDA v5 and v6
17+
if isdefined(CUDA, :CUDACore)
18+
using CUDA: CUDACore
19+
else
20+
const CUDACore = CUDA
21+
end
1622

1723
using GPUCompiler: GPUCompiler
1824
using GPUArraysCore: @allowscalar

0 commit comments

Comments
 (0)