From db0550f51e7cfabfd1c22e2ad1d2a52484874cc8 Mon Sep 17 00:00:00 2001 From: "enzyme-ci-bot[bot]" <78882869+enzyme-ci-bot[bot]@users.noreply.github.com> Date: Sun, 19 Oct 2025 14:51:10 +0000 Subject: [PATCH] Format Julia code --- deps/build_local.jl | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/deps/build_local.jl b/deps/build_local.jl index 6f2eab3f46..b135800600 100644 --- a/deps/build_local.jl +++ b/deps/build_local.jl @@ -36,7 +36,7 @@ function get_cuda_version() end if cuname == "" - return nothing + return nothing end handle = Libdl.dlopen(cuname) @@ -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