CMAKE, MAKE: Add support for NV HPC version 21.11.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2021-12-17 15:47:09 -03:00
parent e977548f41
commit b86d51b755
4 changed files with 9 additions and 8 deletions

View File

@ -34,6 +34,11 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "PGI")
add_compile_options("$<$<CONFIG:DEBUG>:-O;-Minfo=all>")
endif()
if(CMAKE_Fortran_COMPILER_ID MATCHES "NVHPC")
add_compile_options("$<$<CONFIG:RELEASE>:-fast;-O4;-Minline>")
add_compile_options("$<$<CONFIG:DEBUG>:-Mbounds;-Mchkptr;-Minfo=all>")
endif()
file(GLOB_RECURSE sources sources/*.F90)
add_executable(amun.x ${sources})

View File

@ -63,8 +63,8 @@ Requirements
version 18.10 or newer,
- [Intel Fortran](https://software.intel.com/en-us/fortran-compilers)
compiler version 9.0 or newer.
- [NVIDIA HPC](https://developer.nvidia.com/hpc-sdk) compiler version 21.9.
Warning: I could not make it run with the included MPI libraries.
- [NVIDIA HPC](https://developer.nvidia.com/hpc-sdk) compiler version 21.11
or newer.
* Recommended, although optional, [OpenMPI](https://www.open-mpi.org/) for
parallel runs, tested with version 1.8 or newer.
* Optional [CMake](https://cmake.org) version 3.16 or newer, for advanced

View File

@ -55,9 +55,9 @@ LD = $(FC)
# compiler and linker flags
#
ifeq ($(DEBUG),Y)
FFLAGS = -O0 -g -Mbounds -Mchkptr -Mcache_align -Mnovintr -Mchkstk -DDEBUG
FFLAGS = -O0 -g -Mbounds -Mchkptr -Minfo=all -DDEBUG
else
FFLAGS = -fast -O3
FFLAGS = -fast -O4 -Minline
endif
ifeq ($(OPENMP),Y)
FFLAGS += -mp

View File

@ -46,9 +46,7 @@ module mpitools
end interface
interface reduce_maximum
module procedure reduce_maximum_integer
#ifndef __NVCOMPILER
module procedure reduce_maximum_double
#endif /* __NVCOMPILER */
module procedure reduce_maximum_double_array
end interface
interface reduce_sum
@ -655,7 +653,6 @@ module mpitools
!-------------------------------------------------------------------------------
!
end subroutine reduce_maximum_integer
#ifndef __NVCOMPILER
!
!===============================================================================
!
@ -697,7 +694,6 @@ module mpitools
!-------------------------------------------------------------------------------
!
end subroutine reduce_maximum_double
#endif /* __NVCOMPILER */
!
!===============================================================================
!