Skip to content

Commit 15fdc0f

Browse files
Katharine Hyattkshyatt
authored andcommitted
Force GC, empty caches, and extend timeout a bit
1 parent 7e4039a commit 15fdc0f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/CI.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
with:
2323
fast: "${{ github.event.pull_request.draft == true }}"
2424
exclude: '["cuda", "amd"]'
25-
timeout-minutes: 120
25+
timeout-minutes: 150
2626
secrets:
2727
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

‎test/enzyme-factorizations/factorizations.jl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using Random
1212

1313
is_ci = get(ENV, "CI", "false") == "true"
1414

15-
spacelist = [ad_spacelist(fast_tests)[end]]
15+
spacelist = ad_spacelist(fast_tests)
1616
eltypes = (Float64, ComplexF64)
1717

1818
@timedtestset "Enzyme - Factorizations: $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes, t in (randn(T, V[1] ⊗ V[2] ← V[1] ⊗ V[2]), randn(T, V[1] ⊗ V[2] ← (V[3] ⊗ V[4] ⊗ V[5])'))
@@ -79,6 +79,8 @@ eltypes = (Float64, ComplexF64)
7979
EnzymeTestUtils.test_reverse(qr_null, Duplicated, (t, Duplicated); atol, rtol, output_tangent = ΔN)
8080
end
8181
end
82+
TensorKit.empty_globalcaches!()
83+
GC.gc(true)
8284
end
8385

8486
@timedtestset "Enzyme - Factorizations (EIGH/EIG): $(TensorKit.type_repr(sectortype(eltype(V)))) ($T)" for V in spacelist, T in eltypes, t in (randn(T, V[1] ← V[1]), rand(T, V[1] ⊗ V[2] ← V[1] ⊗ V[2]))
@@ -134,4 +136,6 @@ end
134136
EnzymeTestUtils.test_reverse(project_hermitian!, Duplicated, (t, Duplicated); atol, rtol)
135137
EnzymeTestUtils.test_reverse(project_antihermitian!, Duplicated, (t, Duplicated); atol, rtol)
136138
end
139+
TensorKit.empty_globalcaches!()
140+
GC.gc(true)
137141
end

0 commit comments

Comments
 (0)