Skip to content

Commit 045b79d

Browse files
committed
Fixup buildkite handling for Mooncake
1 parent 972bb8e commit 045b79d

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

test/mooncake.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ is_buildkite = get(ENV, "BUILDKITE", "false") == "true"
1313
m = 19
1414
for T in BLASFloats, n in (17, m, 23)
1515
TestSuite.seed_rng!(123)
16-
if is_buildkite
17-
if CUDA.functional()
18-
TestSuite.test_mooncake(CuMatrix{T}, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T))
19-
end
20-
#=if AMDGPU.functional()
21-
TestSuite.test_mooncake(ROCMatrix{T}, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T))
22-
end=# # not yet supported
23-
else
16+
if CUDA.functional()
17+
TestSuite.test_mooncake(CuMatrix{T}, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T))
18+
end
19+
#=if AMDGPU.functional()
20+
TestSuite.test_mooncake(ROCMatrix{T}, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T))
21+
end=# # not yet supported
22+
if !is_buildkite
2423
TestSuite.test_mooncake(T, (m, n); atol = m * n * TestSuite.precision(T), rtol = m * n * TestSuite.precision(T))
2524
end
2625
end

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ if !is_buildkite
2828
@safetestset "Image and Null Space" begin
2929
include("orthnull.jl")
3030
end
31-
@safetestset "Mooncake" begin
32-
include("mooncake.jl")
33-
end
3431
@safetestset "ChainRules" begin
3532
include("chainrules.jl")
3633
end
@@ -71,6 +68,9 @@ end
7168
@safetestset "Projections" begin
7269
include("projections.jl")
7370
end
71+
@safetestset "Mooncake" begin
72+
include("mooncake.jl")
73+
end
7474

7575
using CUDA
7676
if CUDA.functional()

0 commit comments

Comments
 (0)