Skip to content

Commit

Permalink
Specialize GPUArrays' global_size query. (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 17, 2023
1 parent 77b8551 commit 8f51c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpuarrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ GPUArrays.blockdim(ctx::mtlKernelContext) = Metal.threads_per_threadgroup_1d
GPUArrays.threadidx(ctx::mtlKernelContext) = Metal.thread_position_in_threadgroup_1d()
GPUArrays.griddim(ctx::mtlKernelContext) = Metal.threadgroups_per_grid_1d()
GPUArrays.global_index(ctx::mtlKernelContext) = Metal.thread_position_in_grid_1d()
GPUArrays.global_size(ctx::mtlKernelContext) = Metal.threads_per_grid_1d()

# math

Expand Down

0 comments on commit 8f51c87

Please sign in to comment.