The Cornell-Holland Ab-initio Materials Package (CHAMP) is a quantum Monte Carlo suite of programs for electronic structure calculations of atomic and molecular systems.
GNU General Public License v3.0
18
stars
7
forks
source link
Add support for "classic" flang and aocc flang compiler in CMakeLists and FindSIMD #282
Hello,
As promised this is the second part of the modifications reported by email previously.
This patch adds support for flang in CMakeLists.txt and FindSIMD.cmake.
This is intended for both "classic" flang and aocc-flang
This doesn't include the new flang for which the CMake identifier is LLVMFlang.
CMakeLists.txt :
The flags are based on GCC with the one not supported removed.
I will try to look later on for another pass for optimization flags.
FindSIMD.cmake :
Since the compiler can be used on multiple architecture and cover both classic flang and aocc-flang (amd but can be used everywhere) I preferred to use the more generic march=native instead of the specific march=znver4 or march=znver3. Using them instead would require to discriminate by vendor first then after by compilers.
Hello, As promised this is the second part of the modifications reported by email previously.
This patch adds support for flang in
CMakeLists.txt
andFindSIMD.cmake
. This is intended for both "classic" flang and aocc-flang This doesn't include the new flang for which the CMake identifier is LLVMFlang.CMakeLists.txt
: The flags are based on GCC with the one not supported removed. I will try to look later on for another pass for optimization flags.FindSIMD.cmake
: Since the compiler can be used on multiple architecture and cover both classic flang and aocc-flang (amd but can be used everywhere) I preferred to use the more genericmarch=native
instead of the specificmarch=znver4
ormarch=znver3
. Using them instead would require to discriminate by vendor first then after by compilers.