JuliaORNL / JACC.jl

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

Flawed use of `threadid()` #4

Closed carstenbauer closed 1 year ago

carstenbauer commented 1 year ago

See https://julialang.org/blog/2023/07/PSA-dont-use-threadid/ :)

If you can live with traditional non-composable multithreading just use @threads :static instead of @threads.

(I'll make a PR if I find the time or you beat me to it :D)

williamfgc commented 1 year ago

Thanks @carstenbauer as you know this is in very early exploratory stages so any input is appreciated!