CMAKE, MAKE: Add support for NV HPC version 21.11.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
e977548f41
commit
b86d51b755
@ -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})
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
!
|
||||
!===============================================================================
|
||||
!
|
||||
|
Loading…
x
Reference in New Issue
Block a user