From 80ec8695576b8b5ef24df67d2a0b7f6df1f09828 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Wed, 17 Apr 2024 16:51:41 -0400 Subject: [PATCH] fixup! Use PrecompileTools to warmup CUDA.jl --- src/precompile.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/precompile.jl b/src/precompile.jl index d765847840..6f5a46ff04 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -15,8 +15,8 @@ precompile(cudaconvert, (Function,)) precompile(Core.kwfunc(cudacall), (NamedTuple{(:threads, :blocks), Tuple{Int64, Int64}},typeof(cudacall),CuFunction,Type{Tuple{}})) precompile(Core.kwfunc(launch), (NamedTuple{(:threads, :blocks), Tuple{Int64, Int64}},typeof(launch),CuFunction)) -@static if VERSION >= v"1.11.0-DEV.1603" using PrecompileTools: @setup_workload, @compile_workload +@static if VERSION >= v"1.11.0-DEV.1603" @setup_workload let @compile_workload begin target = PTXCompilerTarget(; cap=v"7.5")