Skip to content

Commit 4dbbfc6

Browse files
committed
Fix threads/blocks heuristic.
1 parent 56d0c1f commit 4dbbfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/execution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function gpu_call(kernel::Base.Callable, A::AbstractArray, args...;
3939
if threads !== nothing || blocks !== nothing
4040
error("Cannot specify both total_threads and threads/blocks configuration")
4141
end
42-
threads, blocks = thread_blocks_heuristic(total_threads)
42+
blocks, threads = thread_blocks_heuristic(total_threads)
4343
else
4444
if threads === nothing
4545
threads = 1

0 commit comments

Comments
 (0)