1- using Distributed, Test, Metal, Adapt, ObjectiveC, ObjectiveC. Foundation
1+ using Distributed, Test, Metal, BFloat16s, Adapt, ObjectiveC, ObjectiveC. Foundation
22
33Metal. functional () || error (" Metal.jl is not functional on this system" )
44
@@ -10,12 +10,6 @@ gpuarrays_root = dirname(dirname(gpuarrays))
1010include (joinpath (gpuarrays_root, " test" , " testsuite.jl" ))
1111testf (f, xs... ; kwargs... ) = TestSuite. compare (f, MtlArray, xs... ; kwargs... )
1212
13- const eltypes = [Int16, Int32, Int64,
14- Complex{Int16}, Complex{Int32}, Complex{Int64},
15- Float16, Float32,
16- ComplexF16, ComplexF32]
17- TestSuite. supported_eltypes (:: Type{<:MtlArray} ) = eltypes
18-
1913const runtime_validation = get (ENV , " MTL_DEBUG_LAYER" , " 0" ) != " 0"
2014const shader_validation = get (ENV , " MTL_SHADER_VALIDATION" , " 0" ) != " 0"
2115
@@ -32,7 +26,7 @@ function runtests(f, name)
3226 # generate a temporary module to execute the tests in
3327 mod_name = Symbol (" Test" , rand (1 : 100 ), " Main_" , replace (name, ' /' => ' _' ))
3428 mod = @eval (Main, module $ mod_name end )
35- @eval (mod, using Test, Random, Metal)
29+ @eval (mod, using Test, Random, Metal, BFloat16s )
3630
3731 let id = myid ()
3832 wait (@spawnat 1 print_testworker_started (name, id))
0 commit comments