-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hommexx: fix templating #6449
Closed
Closed
hommexx: fix templating #6449
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## config that worked for this file: | ||
#module purge | ||
# | ||
#module load cmake/3.25.2 aue/gcc/10.3.0 aue/hdf5/1.14.2-gcc-10.3.0-openmpi-4.1.6 aue/netcdf-c/4.9.2-gcc-10.3.0-openmpi-4.1.6 | ||
#module load aue/binutils/2.41 aue/cuda/11.8.0-gcc-10.3.0 aue/parallel-netcdf/1.12.3-gcc-10.3.0-openmpi-4.1.6 aue/openmpi/4.1.6-gcc-10.3.0 | ||
|
||
#EXECUTE_PROCESS(COMMAND nf-config --prefix | ||
# RESULT_VARIABLE NFCONFIG_RESULT | ||
# OUTPUT_VARIABLE NFCONFIG_OUTPUT | ||
# ERROR_VARIABLE NFCONFIG_ERROR | ||
# OUTPUT_STRIP_TRAILING_WHITESPACE | ||
#) | ||
#SET (NetCDF_Fortran_PATH "${NFCONFIG_OUTPUT}" CACHE STRING "") | ||
#SET (NetCDF_C_PATH "${NCCONFIG_OUTPUT}" CACHE STRING "") | ||
|
||
#SET (HOMMEXX_BFB_TESTING TRUE CACHE BOOL "") | ||
|
||
# TPL settings | ||
#set(HDF5_DIR $ENV{HDF5_ROOT} CACHE FILEPATH "") | ||
#set(ZLIB_DIR $ENV{ZLIB_ROOT} CACHE FILEPATH "") | ||
#set(CURL_ROOT $ENV{CURL_ROOT} CACHE FILEPATH "") | ||
#set(CURL_LIBRARY -L$ENV{CURL_ROOT}/lib -lcurl CACHE LIST "") | ||
|
||
# Flag tweaks | ||
set(CMAKE_C_FLAGS "-w" CACHE STRING "") | ||
set(ADD_CXX_FLAGS "-Xcudafe --diag_suppress=esa_on_defaulted_function_ignored -Wno-unknown-pragmas --fmad=false -O0 -I/projects/aue/hpc/builds/x86_64/rhel8/ompiflux/openmpi-4.1.6-gcc-10.3.0/install/linux-rhel8-x86_64/gcc-10.3.0/openmpi-4.1.6-67j5mxl/include/" CACHE STRING "") | ||
set(ADD_Fortran_FLAGS " -ffp-contract=off -O0 -I/projects/aue/hpc/builds/x86_64/rhel8/ompiflux/openmpi-4.1.6-gcc-10.3.0/install/linux-rhel8-x86_64/gcc-10.3.0/openmpi-4.1.6-67j5mxl/include/" CACHE STRING "") | ||
set(CMAKE_EXE_LINKER_FLAGS "-ldl" CACHE STRING "") | ||
set(OPT_FLAGS "-O0" CACHE STRING "") | ||
#set(DEBUG_FLAGS "-ffp-contract=off -g"CACHE STRING "") | ||
|
||
# Homme settings | ||
set(BUILD_HOMME_WITHOUT_PIOLIBRARY TRUE CACHE BOOL "") | ||
|
||
set(HOMMEXX_VECTOR_SIZE 1 CACHE STRING "") | ||
set(HOMME_FIND_BLASLAPACK TRUE CACHE BOOL "") | ||
set(USE_QUEUING FALSE CACHE BOOL "") | ||
set(USE_TRILINOS OFF CACHE BOOL "") | ||
#set(WITH_PNETCDF FALSE CACHE FILEPATH "") | ||
set(USE_NUM_PROCS 4 CACHE STRING "Num mpiprocs to use") | ||
set(HAVE_EXTRAE TRUE CACHE BOOL "") | ||
set(ENABLE_COLUMN_OPENMP OFF CACHE BOOL "") | ||
set(ENABLE_HORIZ_OPENMP OFF CACHE BOOL "") | ||
set(HOMMEXX_EXEC_SPACE "CUDA" CACHE STRING "") | ||
set(HOMMEXX_CUDA_MAX_WARP_PER_TEAM 8 CACHE STRING "") | ||
|
||
SET(BUILD_HOMME_PREQX_KOKKOS FALSE CACHE BOOL "") | ||
SET(BUILD_HOMME_THETA_KOKKOS TRUE CACHE BOOL "") | ||
#sET(HOMME_ENABLE_COMPOSE FALSE CACHE BOOL "") | ||
|
||
set(HOMMEXX_BFB_TESTING TRUE CACHE STRING ON) | ||
|
||
# Kokkos settings | ||
set(ENABLE_OPENMP FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_DEBUG FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_AGGRESSIVE_VECTORIZATION FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_CUDA TRUE CACHE BOOL "") | ||
set(Kokkos_ENABLE_CUDA_LAMBDA TRUE CACHE BOOL "") | ||
set(Kokkos_ARCH_HOPPER90 TRUE CACHE BOOL "") | ||
set(Kokkos_ENABLE_DEPRECATED_CODE FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION FALSE CACHE BOOL "") | ||
|
||
# Compilers | ||
set(CMAKE_C_COMPILER mpicc CACHE STRING "") | ||
set(CMAKE_Fortran_COMPILER mpif90 CACHE STRING "") | ||
######## CHANGE THAT | ||
set(CMAKE_CXX_COMPILER "/home/onguba/acme-b2/externals/ekat/extern/kokkos/bin/nvcc_wrapper" CACHE STRING "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
## config that worked for this file: | ||
# | ||
#module purge | ||
# | ||
#module load cmake/3.25.2 aue/gcc/10.3.0 aue/hdf5/1.14.2-gcc-10.3.0-openmpi-4.1.6 aue/netcdf-c/4.9.2-gcc-10.3.0-openmpi-4.1.6 | ||
#module load aue/binutils/2.41 aue/cuda/11.8.0-gcc-10.3.0 aue/parallel-netcdf/1.12.3-gcc-10.3.0-openmpi-4.1.6 aue/openmpi/4.1.6-gcc-10.3.0 | ||
|
||
#EXECUTE_PROCESS(COMMAND nf-config --prefix | ||
# RESULT_VARIABLE NFCONFIG_RESULT | ||
# OUTPUT_VARIABLE NFCONFIG_OUTPUT | ||
# ERROR_VARIABLE NFCONFIG_ERROR | ||
# OUTPUT_STRIP_TRAILING_WHITESPACE | ||
#) | ||
#SET (NetCDF_Fortran_PATH "${NFCONFIG_OUTPUT}" CACHE STRING "") | ||
#SET (NetCDF_C_PATH "${NCCONFIG_OUTPUT}" CACHE STRING "") | ||
|
||
#SET (HOMMEXX_BFB_TESTING TRUE CACHE BOOL "") | ||
|
||
# TPL settings | ||
#set(HDF5_DIR $ENV{HDF5_ROOT} CACHE FILEPATH "") | ||
#set(ZLIB_DIR $ENV{ZLIB_ROOT} CACHE FILEPATH "") | ||
#set(CURL_ROOT $ENV{CURL_ROOT} CACHE FILEPATH "") | ||
#set(CURL_LIBRARY -L$ENV{CURL_ROOT}/lib -lcurl CACHE LIST "") | ||
|
||
# Flag tweaks | ||
set(CMAKE_C_FLAGS "-w" CACHE STRING "") | ||
set(ADD_CXX_FLAGS "-Xcudafe --diag_suppress=esa_on_defaulted_function_ignored -Wno-unknown-pragmas -I/projects/aue/hpc/builds/x86_64/rhel8/ompiflux/openmpi-4.1.6-gcc-10.3.0/install/linux-rhel8-x86_64/gcc-10.3.0/openmpi-4.1.6-67j5mxl/include/" CACHE STRING "") | ||
set(ADD_Fortran_FLAGS "-I/projects/aue/hpc/builds/x86_64/rhel8/ompiflux/openmpi-4.1.6-gcc-10.3.0/install/linux-rhel8-x86_64/gcc-10.3.0/openmpi-4.1.6-67j5mxl/include/" CACHE STRING "") | ||
set(CMAKE_EXE_LINKER_FLAGS "-ldl" CACHE STRING "") | ||
set(OPT_FLAGS "-O3" CACHE STRING "") | ||
#set(DEBUG_FLAGS "-ffp-contract=off -g"CACHE STRING "") | ||
|
||
# Homme settings | ||
set(BUILD_HOMME_WITHOUT_PIOLIBRARY TRUE CACHE BOOL "") | ||
|
||
set(HOMMEXX_VECTOR_SIZE 1 CACHE STRING "") | ||
set(HOMME_FIND_BLASLAPACK TRUE CACHE BOOL "") | ||
set(USE_QUEUING FALSE CACHE BOOL "") | ||
set(USE_TRILINOS OFF CACHE BOOL "") | ||
#set(WITH_PNETCDF FALSE CACHE FILEPATH "") | ||
set(USE_NUM_PROCS 4 CACHE STRING "Num mpiprocs to use") | ||
set(HAVE_EXTRAE TRUE CACHE BOOL "") | ||
set(ENABLE_COLUMN_OPENMP OFF CACHE BOOL "") | ||
set(ENABLE_HORIZ_OPENMP OFF CACHE BOOL "") | ||
set(HOMMEXX_EXEC_SPACE "CUDA" CACHE STRING "") | ||
set(HOMMEXX_CUDA_MAX_WARP_PER_TEAM 8 CACHE STRING "") | ||
|
||
SET(BUILD_HOMME_PREQX_KOKKOS FALSE CACHE BOOL "") | ||
SET(BUILD_HOMME_THETA_KOKKOS TRUE CACHE BOOL "") | ||
#sET(HOMME_ENABLE_COMPOSE FALSE CACHE BOOL "") | ||
|
||
#set(HOMMEXX_BFB_TESTING TRUE CACHE STRING ON) | ||
|
||
# Kokkos settings | ||
set(ENABLE_OPENMP FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_DEBUG FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_AGGRESSIVE_VECTORIZATION FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_CUDA TRUE CACHE BOOL "") | ||
set(Kokkos_ENABLE_CUDA_LAMBDA TRUE CACHE BOOL "") | ||
set(Kokkos_ARCH_HOPPER90 TRUE CACHE BOOL "") | ||
set(Kokkos_ENABLE_DEPRECATED_CODE FALSE CACHE BOOL "") | ||
set(Kokkos_ENABLE_EXPLICIT_INSTANTIATION FALSE CACHE BOOL "") | ||
|
||
# Compilers | ||
set(CMAKE_C_COMPILER mpicc CACHE STRING "") | ||
set(CMAKE_Fortran_COMPILER mpif90 CACHE STRING "") | ||
######## CHANGE THAT | ||
set(CMAKE_CXX_COMPILER "/home/onguba/acme-b2/externals/ekat/extern/kokkos/bin/nvcc_wrapper" CACHE STRING "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So adding the extra
void
template argument doesn't work for the non-GPU case, thus requiring the#ifdef
?