Skip to content

Commit

Permalink
Remove reliance of gpu random functionality in copy tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Jun 18, 2024
1 parent c6b6395 commit 20db056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/mps/copy.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Metal, Test
using Metal, Random, Test

# XXX: Why 64-bit Integers broken? Same behaviour with Swift
const IGNORE_UNION = Union{Complex, Int64, UInt64}
Expand Down Expand Up @@ -35,7 +35,8 @@ end
Ts = Ts[.!(Ts .<: IGNORE_UNION)]
@testset "$T" for T in Ts
for dim in ((16,16), (10,500), (500,10), (256,512))
srcMat = Metal.rand(T, dim)

srcMat = MtlArray(rand(T, dim))

dstMat = copytest(srcMat, false, false)
@test dstMat == srcMat
Expand Down

0 comments on commit 20db056

Please sign in to comment.