Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions deps/build_local.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function get_cuda_version()
end

if cuname == ""
return nothing
return nothing
end

handle = Libdl.dlopen(cuname)
Expand Down Expand Up @@ -123,16 +123,20 @@ if build_backend == "auto" || build_backend == "cuda"
cuda_ver = get_cuda_version()
@show cuda_ver
if cuda_ver === nothing
if build_backend == "cuda"
throw(AssertionError("Could not detect cuda version, but requested cuda with auto version build"))
end
build_backend = "cpu"
if build_backend == "cuda"
throw(
AssertionError(
"Could not detect cuda version, but requested cuda with auto version build",
),
)
end
build_backend = "cpu"
else
if Int(get_cuda_version().major) == 13
build_backend = "cuda13"
else
build_backend = "cuda12"
end
if Int(get_cuda_version().major) == 13
build_backend = "cuda13"
else
build_backend = "cuda12"
end
end
end

Expand Down