From 619e3b0273ed28afdcc0feec31175d31149d06e3 Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Thu, 2 Jan 2025 17:30:16 -0500 Subject: [PATCH] Fix cuda isdefined error --- ext/ReactantCUDAExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ReactantCUDAExt.jl b/ext/ReactantCUDAExt.jl index 2d709d05ff..73409cba2e 100644 --- a/ext/ReactantCUDAExt.jl +++ b/ext/ReactantCUDAExt.jl @@ -458,7 +458,7 @@ Reactant.@reactant_overlay @noinline function CUDA.cufunction( end function __init__() - if CUDA.CUDA_Driver_jll.libcuda !== nothing + if isdefined(CUDA.CUDA_Driver_jll, :libcuda) && CUDA.CUDA_Driver_jll.libcuda !== nothing handle = Reactant.XLA.Libdl.dlopen(CUDA.CUDA_Driver_jll.libcuda; throw_error=false) if handle === nothing handle = C_NULL