From c7f880cf9b72570673528771e963814fd6a0f131 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")