Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions test/device/intrinsics/atomics.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Random

@testset "atomics" begin

n = 128 # NOTE: also hard-coded in MtlThreadGroupArray constructors
Expand Down
1 change: 0 additions & 1 deletion test/device/intrinsics/math.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Metal: metal_support
using Random
using SpecialFunctions

############################################################################################
Expand Down
2 changes: 0 additions & 2 deletions test/device/intrinsics/simd.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Random

@testset "simd intrinsics" begin

@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)]
Expand Down
1 change: 0 additions & 1 deletion test/device/intrinsics/synchronization.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Random
@testset "synchronization" begin
# host/device synchronization
let
Expand Down
2 changes: 0 additions & 2 deletions test/mps/linalg.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using LinearAlgebra

if MPS.is_supported(device())

@testset "mixed-precision matrix matrix multiplication" begin
Expand Down
1 change: 0 additions & 1 deletion test/mps/ndarray.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#
# matrix descriptor
#
using Metal
using .MPS: MPSNDArrayDescriptor, MPSDataType, lengthOfDimension, descriptor, resourceSize
@static if Metal.macos_version() >= v"15"
using .MPS: userBuffer
Expand Down
1 change: 0 additions & 1 deletion test/mpsgraphs/core.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

if MPS.is_supported(device())

using .MPS: MPSShape
Expand Down
3 changes: 0 additions & 3 deletions test/mpsgraphs/linalg.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using LinearAlgebra


if MPS.is_supported(device())

@testset "mixed-precision matrix matrix multiplication" begin
Expand Down
4 changes: 1 addition & 3 deletions test/mpsgraphs/random.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using BFloat16s

if MPS.is_supported(device())

using .MPSGraphs: MPSGraphRandomOpDescriptor, MPSGraphRandomDistributionNormal, MPSGraphRandomDistributionTruncatedNormal, MPSGraphRandomDistributionUniform
Expand All @@ -18,7 +16,7 @@ using .MPSGraphs: MPSGraphRandomOpDescriptor, MPSGraphRandomDistributionNormal,
(MPSGraphRandomDistributionUniform, Float16),
(MPSGraphRandomDistributionUniform, BFloat16),
]
@test MPSGraphRandomOpDescriptor(MPSGraphRandomDistributionNormal, Float32) isa MPSGraphRandomOpDescriptor
@test MPSGraphRandomOpDescriptor(dist, T) isa MPSGraphRandomOpDescriptor
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/mtl/metal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,6 @@ end

# TODO: continue adding tests

end
end # @autoreleasepool begin

end
end # @testset "MTL" begin
1 change: 0 additions & 1 deletion test/mtl/size.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

@testset "size" begin
dim1 = rand(UInt64)
dim2 = rand(UInt64)
Expand Down
6 changes: 3 additions & 3 deletions test/profiling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ cd(tmpdir) do
@test isdir("julia_1.trace")
end

end
end
end
end # cd(tmpdir) do
end # mktempdir() do tmpdir
end # if run_tests

end
2 changes: 1 addition & 1 deletion test/setup.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Distributed, Test, Metal, Adapt, ObjectiveC, ObjectiveC.Foundation
using Distributed, Test, Metal, Adapt, ObjectiveC, ObjectiveC.Foundation, BFloat16s

# GPUArrays has a testsuite that isn't part of the main package.
# Include it directly.
Expand Down
4 changes: 2 additions & 2 deletions test/version.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "Version" begin
@testset "version" begin

@test Metal.darwin_version() isa VersionNumber
@test Metal.macos_version() isa VersionNumber
Expand All @@ -8,4 +8,4 @@
@test Metal.air_support() isa VersionNumber
@test Metal.metal_support() isa VersionNumber

end # testset "Version"
end # testset "version"