Skip to content

Commit

Permalink
Merge pull request #105 from williamfgc/reorder-amdgpu
Browse files Browse the repository at this point in the history
Reorder AMDGPU gridsize
  • Loading branch information
williamfgc authored Jul 1, 2024
2 parents 01068b7 + 3852a35 commit ef85431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/JACCAMDGPU/JACCAMDGPU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function JACC.parallel_for(
(L, M, N)::Tuple{I, I, I}, f::F, x...) where {
I <: Integer, F <: Function}
numThreads = 32
Lthreads = min(L, numThreads)
Lthreads = 1
Mthreads = min(M, numThreads)
Nthreads = 1
Nthreads = min(N, numThreads)
Lblocks = ceil(Int, L / Lthreads)
Mblocks = ceil(Int, M / Mthreads)
Nblocks = ceil(Int, N / Nthreads)
Expand Down

0 comments on commit ef85431

Please sign in to comment.