Open hfp opened 1 month ago
Thanks @hfp I will take a look next week...
Thanks @hfp I will take a look next week...
Might be easier now (less work, only three files). I separated some cleanup work (#860).
@mkrack this single PR is apparently resolving all runtime issues with Intel Fortran Compiler (IFX) in CP2K/DBCSR. There is still the question why PARALLEL WORKSHARE DEFAULT(none) SHARED(...) IF(spawn)
with spawn=.NOT. omp_in_parallel()
does not work as opposed to the code shown here (but this might be well-covered by a bug report). Further, see https://github.com/cp2k/dbcsr/issues/857#issuecomment-2416094575 - it can be of interest for CP2K.
@alazzaro any feedback welcome - so far, no issues with this code on my side, I am actively using it since sending the PR.
Objective of this implementation is to exercise a way to preserve the (parallel) workshare. It does not judge (or confirms) whether the workshare is beneficial or not.
@hfp thanks, I will review everything next week and make a new RC that we can push to CP2K for more testings
Hold on merging this PR. I pulled in more expertise. I will reply on the original issue https://github.com/cp2k/dbcsr/issues/857, and revise/close this PR accordingly.