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>") add_compile_options("$<$<CONFIG:DEBUG>:-O;-Minfo=all>")
endif() 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) file(GLOB_RECURSE sources sources/*.F90)
add_executable(amun.x ${sources}) add_executable(amun.x ${sources})

View File

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

View File

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

View File

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