Skip to content

Commit

Permalink
test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
glou-nes authored and wsmoses committed Jan 3, 2025
1 parent 6c4d00c commit 9d82b9f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Precompile.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
using PrecompileTools: @setup_workload, @compile_workload

@setup_workload begin
@static if haskey(ENV, "REACTANT_TEST_GROUP")
return
end
initialize_dialect()
cpu = XLA.CPUClient()
@compile_workload begin
initialize_dialect()
cpu = XLA.CPUClient()
x = Reactant.ConcreteRArray(randn(Float64, 2, 2); client=cpu)
@code_hlo optimize = false sum(x)
XLA.free_client(cpu)
deinitialize_dialect()
end
XLA.free_client(cpu)
deinitialize_dialect()
XLA.cpuclientcount[] = 0
end

0 comments on commit 9d82b9f

Please sign in to comment.