OpenMP support is now switchable within the generation script
Since MSVC only has beta support for OpenMP 2.0 firstprivate cannot be used for these compilers. However, firstprivate is necessary for a reasonably safe implementation of OpenMP in MESA-PD. The solution is to move OpenMP support to the generator and disable OpenMP for the checked in version. The waLBerla OpenMP guards are removed as they are no longer needed. It is now assumed that if MESA-PD is generated with OpenMP support it is about to be used. If OpenMP is disabled with CMake warnings will pop up about undefined pragmas.
Showing
- python/mesa_pd.py 1 addition, 0 deletionspython/mesa_pd.py
- python/mesa_pd/Module.py 11 additions, 5 deletionspython/mesa_pd/Module.py
- python/mesa_pd/data/ParticleStorage.py 3 additions, 2 deletionspython/mesa_pd/data/ParticleStorage.py
- python/mesa_pd/templates/common/ParticleFunctions.templ.h 148 additions, 0 deletionspython/mesa_pd/templates/common/ParticleFunctions.templ.h
- python/mesa_pd/templates/data/ContactStorage.templ.h 3 additions, 3 deletionspython/mesa_pd/templates/data/ContactStorage.templ.h
- python/mesa_pd/templates/data/LinkedCells.templ.h 6 additions, 6 deletionspython/mesa_pd/templates/data/LinkedCells.templ.h
- python/mesa_pd/templates/data/ParticleStorage.templ.h 9 additions, 9 deletionspython/mesa_pd/templates/data/ParticleStorage.templ.h
- python/mesa_pd/templates/kernel/ForceLJ.templ.h 4 additions, 25 deletionspython/mesa_pd/templates/kernel/ForceLJ.templ.h
- src/mesa_pd/common/ParticleFunctions.h 13 additions, 50 deletionssrc/mesa_pd/common/ParticleFunctions.h
- src/mesa_pd/data/ContactStorage.h 0 additions, 6 deletionssrc/mesa_pd/data/ContactStorage.h
- src/mesa_pd/data/LinkedCells.h 0 additions, 9 deletionssrc/mesa_pd/data/LinkedCells.h
- src/mesa_pd/data/ParticleStorage.h 0 additions, 18 deletionssrc/mesa_pd/data/ParticleStorage.h
- src/mesa_pd/kernel/ForceLJ.h 4 additions, 25 deletionssrc/mesa_pd/kernel/ForceLJ.h
- tests/mesa_pd/kernel/ForceLJ.cpp 0 additions, 15 deletionstests/mesa_pd/kernel/ForceLJ.cpp
- tests/mesa_pd/kernel/SpringDashpot.cpp 0 additions, 17 deletionstests/mesa_pd/kernel/SpringDashpot.cpp
Please register or sign in to comment