Merge branch 'experimental-Flang' into 'development'
starting to support new LLVM compiler See merge request damask/DAMASK!881
This commit is contained in:
commit
b9d1666524
|
@ -101,6 +101,9 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
|
||||||
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM")
|
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM")
|
||||||
include(Compiler-IntelLLVM)
|
include(Compiler-IntelLLVM)
|
||||||
set(Fortran_COMPILER_VERSION_MIN 19)
|
set(Fortran_COMPILER_VERSION_MIN 19)
|
||||||
|
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
|
||||||
|
include(Compiler-LLVMFlang)
|
||||||
|
set(Fortran_COMPILER_VERSION_MIN 19)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Compiler '${CMAKE_Fortran_COMPILER_ID}' not supported")
|
message(FATAL_ERROR "Compiler '${CMAKE_Fortran_COMPILER_ID}' not supported")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
# GNU Compiler
|
# GNU Compiler
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 9.0)
|
|
||||||
message (FATAL_ERROR "GCC Compiler version: ${CMAKE_Fortran_COMPILER_VERSION} not supported")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (OPENMP)
|
if (OPENMP)
|
||||||
set (OPENMP_FLAGS "-fopenmp")
|
set (OPENMP_FLAGS "-fopenmp")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
# Intel Compiler
|
# Intel Compiler
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0)
|
|
||||||
message (FATAL_ERROR "Intel Compiler version: ${CMAKE_Fortran_COMPILER_VERSION} not supported")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (OPENMP)
|
if (OPENMP)
|
||||||
set (OPENMP_FLAGS "-qopenmp -parallel")
|
set (OPENMP_FLAGS "-qopenmp -parallel")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
# Intel Compiler
|
# IntelLLVM Compiler
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0)
|
|
||||||
message (FATAL_ERROR "Intel Compiler version: ${CMAKE_Fortran_COMPILER_VERSION} not supported")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (OPENMP)
|
if (OPENMP)
|
||||||
set (OPENMP_FLAGS "-fiopenmp")
|
set (OPENMP_FLAGS "-fiopenmp")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
###################################################################################################
|
||||||
|
# LLVM Compiler
|
||||||
|
###################################################################################################
|
||||||
|
if (OPENMP)
|
||||||
|
set (OPENMP_FLAGS "-fopenmp")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------------------------
|
||||||
|
# Fine tuning compilation options
|
||||||
|
set (COMPILE_FLAGS "${COMPILE_FLAGS} -cpp")
|
||||||
|
# preprocessor
|
||||||
|
|
Loading…
Reference in New Issue