diff --git a/CMakeLists.txt b/CMakeLists.txt index ab9a56a5..1a351384 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) ### Choose CMAKE Type if(NOT CMAKE_BUILD_TYPE) @@ -51,20 +51,20 @@ elseif("$ENV{SYST}" STREQUAL "FX-Fujitsu") # nVidia Fortran compiler elseif("$ENV{SYST}" STREQUAL "NV-OpenACC") set(CMAKE_Fortran_COMPILER "mpif90") - set(CMAKE_Fortran_FLAGS "-W -Wall -Wno-tabs -Wno-compare-reals -acc=gpu,host -cuda -Minfo=accel -gpu=cc80,fastmath -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") + set(CMAKE_Fortran_FLAGS "-W -Wall -acc=gpu,host -cuda -Minfo=accel -gpu=cc80,fastmath -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") set(CMAKE_Fortran_FLAGS_RELEASE "-Munroll -O3 -g -traceback" CACHE STRING "") set(CMAKE_Fortran_FLAGS_DEBUG "-Minit-real=snan -traceback -O0 -g -ffpe-trap=invalid,zero,overflow" CACHE STRING "") add_compile_definitions(DALES_GPU) elseif("$ENV{SYST}" STREQUAL "NV-OpenACC-H100") set(CMAKE_Fortran_COMPILER "mpif90") - set(CMAKE_Fortran_FLAGS "-W -Wall -Wno-tabs -Wno-compare-reals -acc=gpu,host -cuda -Minfo=accel -gpu=cc90,fastmath -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") + set(CMAKE_Fortran_FLAGS "-W -Wall -acc=gpu,host -cuda -Minfo=accel -gpu=cc90,fastmath -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") set(CMAKE_Fortran_FLAGS_RELEASE "-Munroll -O3 -g -traceback" CACHE STRING "") set(CMAKE_Fortran_FLAGS_DEBUG "-Minit-real=snan -traceback -O0 -g -ffpe-trap=invalid,zero,overflow" CACHE STRING "") add_compile_definitions(DALES_GPU) elseif("$ENV{SYST}" STREQUAL "NV-multicore") set(CMAKE_Fortran_COMPILER "mpif90") # Includes (temporary) flags for linking to nVidia-built NetCDF - set(CMAKE_Fortran_FLAGS "-W -Wall -Wno-tabs -Wno-compare-reals -acc=multicore -Minfo=accel -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") + set(CMAKE_Fortran_FLAGS "-W -Wall -acc=multicore -Minfo=accel -Mpreprocess -Mr8 -Mfree -Werror" CACHE STRING "") set(CMAKE_Fortran_FLAGS_RELEASE "-Munroll -Ofast -g -traceback" CACHE STRING "") set(CMAKE_Fortran_FLAGS_DEBUG "-Minit-real=snan -traceback -O0 -g -ffpe-trap=invalid,zero,overflow" CACHE STRING "") elseif("$ENV{SYST}" STREQUAL "NO_OVERRIDES")