Skip to content

Commit

Permalink
Merge pull request #108 from ygtangg/main
Browse files Browse the repository at this point in the history
Changed thread dimension to: 1-32-32
  • Loading branch information
williamfgc authored Jul 10, 2024
2 parents 256aec0 + d5a96c5 commit cae1fc9
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,8 +33,8 @@ 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)
Mthreads = 1
Lthreads = 1
Mthreads = min(L, numThreads)
Nthreads = min(M, numThreads)
Lblocks = ceil(Int, L / Lthreads)
Mblocks = ceil(Int, M / Mthreads)
Expand Down

0 comments on commit cae1fc9

Please sign in to comment.