Skip to content

Commit b7ff91a

Browse files
committed
test: more tests broken
1 parent e13d6b1 commit b7ff91a

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

test/ops.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,8 @@ end
12271227
x_ra = Reactant.to_rarray(randn(Float32, 6, 6))
12281228
lu_ra, ipiv, perm, info = @jit Ops.lu(x_ra)
12291229

1230-
@test @jit(recon_from_lu(lu_ra)) @jit(getindex(x_ra, perm, :))
1230+
@test @jit(recon_from_lu(lu_ra)) @jit(getindex(x_ra, perm, :)) atol = 1e-5 rtol =
1231+
1e-2
12311232
end
12321233

12331234
@testset "batched" begin

test/sorting.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,12 @@ end
188188
flastlinindices(x) = LinearIndices(x)[findlast(x)]
189189
flastlinindices(f, x) = LinearIndices(x)[findlast(f, x)]
190190

191-
@test ffirstlinindices(x) @jit(findfirst(x_ra))
192-
@test flastlinindices(x) @jit(findlast(x_ra))
191+
@test ffirstlinindices(x) @jit(findfirst(x_ra)) broken = contains(
192+
string(Reactant.devices()[1]), "TPU"
193+
)
194+
@test flastlinindices(x) @jit(findlast(x_ra)) broken = contains(
195+
string(Reactant.devices()[1]), "TPU"
196+
)
193197

194198
x = Int64[
195199
3 5 7 9
@@ -198,8 +202,12 @@ end
198202
]
199203
x_ra = Reactant.to_rarray(x)
200204

201-
@test ffirstlinindices(iseven, x) @jit(findfirst(iseven, x_ra))
202-
@test flastlinindices(iseven, x) @jit(findlast(iseven, x_ra))
205+
@test ffirstlinindices(iseven, x) @jit(findfirst(iseven, x_ra)) broken = contains(
206+
string(Reactant.devices()[1]), "TPU"
207+
)
208+
@test flastlinindices(iseven, x) @jit(findlast(iseven, x_ra)) broken = contains(
209+
string(Reactant.devices()[1]), "TPU"
210+
)
203211
end
204212

205213
@testset "approx top k lowering" begin

0 commit comments

Comments
 (0)