Skip to content

Commit

Permalink
CMakeLists: remove warning options not supported by nvfortran, increa…
Browse files Browse the repository at this point in the history
…se minimum cmake version
  • Loading branch information
fjansson committed Nov 14, 2024
1 parent 447269c commit a097510
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

### Choose CMAKE Type
if(NOT CMAKE_BUILD_TYPE)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit a097510

Please sign in to comment.