Skip to content

Commit a5b56dc

Browse files
committed
Fix example
Got a CI failure and it may be due to the crazy number of threads and groups launched
1 parent fab6fc2 commit a5b56dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/unified_memory.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ arr_cpu .= pi
3737
Metal.@allowscalar @test arr_mtl[1] == Float32(pi)
3838

3939
# Now launch a kernel altering the Metal array
40-
Metal.@sync @metal threads=1024 groups=1024 simple_kernel(arr_mtl)
40+
Metal.@sync @metal threads=16 groups=16 simple_kernel(arr_mtl)
4141

4242
# These changes are reflected in the wrapped CPU array
4343
synchronize()

0 commit comments

Comments
 (0)