diff --git a/macos/metal/metal_test.go b/macos/metal/metal_test.go index c2857d4b..692e4cbb 100644 --- a/macos/metal/metal_test.go +++ b/macos/metal/metal_test.go @@ -8,9 +8,10 @@ func TestMetalValid(t *testing.T) { func TestCreateSystemDefaultDevice(t *testing.T) { d := CreateSystemDefaultDevice() - t.Log(d.HasSupportsFamily()) - t.Log(d.SupportsFamily(GPUFamily(5001))) - t.Log("MaxThreadgroupMemoryLength", d.MaxThreadgroupMemoryLength()) - t.Log("MaxBufferLength", d.MaxBufferLength()) - t.Log("MaxThreadsPerThreadgroup", d.MaxThreadsPerThreadgroup()) + if d.HasSupportsFamily() { + t.Log(d.SupportsFamily(GPUFamily(5001))) + t.Log("MaxThreadgroupMemoryLength", d.MaxThreadgroupMemoryLength()) + t.Log("MaxBufferLength", d.MaxBufferLength()) + t.Log("MaxThreadsPerThreadgroup", d.MaxThreadsPerThreadgroup()) + } }