JuliaORNL / JACC.jl

CPU/GPU parallel performance portable layer in Julia via functions as arguments
MIT License
19 stars 9 forks source link

Adding operation (*,/,+,-) as paramenter for JACC.parallel_reduce #96

Open pedrovalerolara opened 3 months ago

pedrovalerolara commented 3 months ago

Now we assume that the reduction operation for parallel_reduce is "+". The idea is to use any kind of operation, passing the operation as a parameter. This has to be implemented in all the backends in JACC.jl/src/JACC.jl (Threads.jl), JACC.jl/ext/JACCCUDA/JACCUDA.jl (CUDA.jl) ...

PhilipFackler commented 1 month ago

yes, please!