Skip to content

Commit 987264c

Browse files
Clean up test imports (#584)
* Fix MPSGraphRandomOpDescriptor tests * Clean up test imports * Whitespace consistency * Capitalization consistency * `end` clarifcation comments
1 parent 7706211 commit 987264c

File tree

14 files changed

+9
-25
lines changed

14 files changed

+9
-25
lines changed

test/device/intrinsics/atomics.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Random
2-
31
@testset "atomics" begin
42

53
n = 128 # NOTE: also hard-coded in MtlThreadGroupArray constructors

test/device/intrinsics/math.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Metal: metal_support
2-
using Random
32
using SpecialFunctions
43

54
############################################################################################

test/device/intrinsics/simd.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Random
2-
31
@testset "simd intrinsics" begin
42

53
@testset "$f($typ)" for typ in [Float32, Float16, Int32, UInt32, Int16, UInt16, Int8, UInt8], (f,res_idx) in [(simd_shuffle_down, 1), (simd_shuffle_up, 32)]

test/device/intrinsics/synchronization.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Random
21
@testset "synchronization" begin
32
# host/device synchronization
43
let

test/mps/linalg.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using LinearAlgebra
2-
31
if MPS.is_supported(device())
42

53
@testset "mixed-precision matrix matrix multiplication" begin

test/mps/ndarray.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# matrix descriptor
33
#
4-
using Metal
54
using .MPS: MPSNDArrayDescriptor, MPSDataType, lengthOfDimension, descriptor, resourceSize
65
@static if Metal.macos_version() >= v"15"
76
using .MPS: userBuffer

test/mpsgraphs/core.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
if MPS.is_supported(device())
32

43
using .MPS: MPSShape

test/mpsgraphs/linalg.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using LinearAlgebra
2-
3-
41
if MPS.is_supported(device())
52

63
@testset "mixed-precision matrix matrix multiplication" begin

test/mpsgraphs/random.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using BFloat16s
2-
31
if MPS.is_supported(device())
42

53
using .MPSGraphs: MPSGraphRandomOpDescriptor, MPSGraphRandomDistributionNormal, MPSGraphRandomDistributionTruncatedNormal, MPSGraphRandomDistributionUniform
@@ -18,7 +16,7 @@ using .MPSGraphs: MPSGraphRandomOpDescriptor, MPSGraphRandomDistributionNormal,
1816
(MPSGraphRandomDistributionUniform, Float16),
1917
(MPSGraphRandomDistributionUniform, BFloat16),
2018
]
21-
@test MPSGraphRandomOpDescriptor(MPSGraphRandomDistributionNormal, Float32) isa MPSGraphRandomOpDescriptor
19+
@test MPSGraphRandomOpDescriptor(dist, T) isa MPSGraphRandomOpDescriptor
2220
end
2321
end
2422

test/mtl/metal.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,6 @@ end
491491

492492
# TODO: continue adding tests
493493

494-
end
494+
end # @autoreleasepool begin
495495

496-
end
496+
end # @testset "MTL" begin

0 commit comments

Comments
 (0)