Skip to content

Commit

Permalink
Update JACCCUDA.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovalerolara authored May 15, 2024
1 parent d3f4ed0 commit 07c5728
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/JACCCUDA/JACCCUDA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ end

function JACC.parallel_for(
(M, N)::Tuple{I, I}, f::F, x...) where {I <: Integer, F <: Function}
numThreads = 32
#To use JACC.shared, it is recommended to use a high number of threads per block to maximize the
# potential benefit from using shared memory.
#numThreads = 32
numThreads = 16
Mthreads = min(M, numThreads)
Nthreads = min(N, numThreads)
Mblocks = ceil(Int, M / Mthreads)
Expand Down

0 comments on commit 07c5728

Please sign in to comment.