Skip to content

Commit c7f880c

Browse files
committed
fixup! Use PrecompileTools to warmup CUDA.jl
1 parent d27e5eb commit c7f880c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ precompile(cudaconvert, (Function,))
1515
precompile(Core.kwfunc(cudacall), (NamedTuple{(:threads, :blocks), Tuple{Int64, Int64}},typeof(cudacall),CuFunction,Type{Tuple{}}))
1616
precompile(Core.kwfunc(launch), (NamedTuple{(:threads, :blocks), Tuple{Int64, Int64}},typeof(launch),CuFunction))
1717

18-
@static if VERSION >= v"1.11.0-DEV.1603"
1918
using PrecompileTools: @setup_workload, @compile_workload
19+
@static if VERSION >= v"1.11.0-DEV.1603"
2020
@setup_workload let
2121
@compile_workload begin
2222
target = PTXCompilerTarget(; cap=v"7.5")

0 commit comments

Comments
 (0)