We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8705424 commit 13554e9Copy full SHA for 13554e9
macos/metal/metal_test.go
@@ -8,9 +8,10 @@ func TestMetalValid(t *testing.T) {
8
9
func TestCreateSystemDefaultDevice(t *testing.T) {
10
d := CreateSystemDefaultDevice()
11
- t.Log(d.HasSupportsFamily())
12
- t.Log(d.SupportsFamily(GPUFamily(5001)))
13
- t.Log("MaxThreadgroupMemoryLength", d.MaxThreadgroupMemoryLength())
14
- t.Log("MaxBufferLength", d.MaxBufferLength())
15
- 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())
16
+ }
17
}
0 commit comments