Skip to content

Commit

Permalink
apply CI check inside setup_workload
Browse files Browse the repository at this point in the history
  • Loading branch information
glou-nes committed Dec 12, 2024
1 parent 483a52c commit 75d894e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/Reactant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ function set_default_backend(backend::String)
return set_default_backend(XLA.backends[backend])
end

@static if !haskey(ENV, "REACTANT_TEST_GROUP")
@info "enable precompilation" gethostname() Base.active_project()
include("precompile.jl")
end
include("precompile.jl")

end # module
4 changes: 4 additions & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using PrecompileTools: @setup_workload, @compile_workload

@setup_workload begin
@static if haskey(ENV, "REACTANT_TEST_GROUP")
return
end
@info "enable precompilation" gethostname() Base.active_project()
@compile_workload begin
Reactant.__init__()
cpu = XLA.CPUClient()
Expand Down

0 comments on commit 75d894e

Please sign in to comment.