Skip to content

Commit

Permalink
metal: Check if returned value responds to selector
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Sep 7, 2023
1 parent 8705424 commit 13554e9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions macos/metal/metal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

0 comments on commit 13554e9

Please sign in to comment.