-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from rseng/update/analysis-2023-11-29
Update from update/analysis-2023-11-29
- Loading branch information
Showing
39 changed files
with
34,166 additions
and
32,026 deletions.
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"Python": 5678, | ||
"Python": 5695, | ||
"R": 2209, | ||
"Cpp": 441, | ||
"Js": 1690, | ||
|
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"python_deps": 4675, | ||
"python_deps": 4691, | ||
"cpp_deps": 441, | ||
"r_deps": 2209, | ||
"js_deps": 1690, | ||
"go_deps": 246, | ||
"total_repos": 5194, | ||
"total_parsed": 2659 | ||
"total_repos": 5209, | ||
"total_parsed": 2665 | ||
} |
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,115 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
cmake_policy(SET CMP0074 NEW) | ||
|
||
project(decomp2d | ||
LANGUAGES Fortran) | ||
set(version 2.0.0) | ||
enable_testing() | ||
if (IO_BACKEND MATCHES "adios2") | ||
# Can be useful to also activate CXX, sometimes is needed by packages | ||
enable_language(C CXX) | ||
endif (IO_BACKEND MATCHES "adios2") | ||
|
||
|
||
set(BUILD_TARGET "mpi" CACHE STRING "Target for acceleration (mpi (default) or gpu)") | ||
set_property(CACHE BUILD_TARGET PROPERTY STRINGS mpi gpu) | ||
|
||
if (BUILD_TARGET MATCHES "gpu") | ||
option(ENABLE_OPENACC "Allow user to activate/deactivate OpenACC support" ON) | ||
option(ENABLE_CUDA "Allow user to activate/deactivate CUDA support" ON) | ||
option(ENABLE_MANAGED "Allow user to activate/deactivate automatic memory managment from NVHPC" OFF) | ||
option(ENABLE_NCCL "Allow user to activate/deactivate Collective Comunication NCCL" OFF) | ||
|
||
if (ENABLE_CUDA) | ||
message(STATUS "Before enable CUDA") | ||
enable_language(CUDA) | ||
message(STATUS "After enable CUDA") | ||
endif() | ||
|
||
endif(BUILD_TARGET MATCHES "gpu") | ||
|
||
set (ENABLE_PROFILER "OFF" CACHE STRING "Activate/select the profiler") | ||
set_property(CACHE ENABLE_PROFILER PROPERTY STRINGS OFF caliper) | ||
option(ENABLE_INPLACE "Enable in-place operation of FFT" OFF) | ||
option(HALO_DEBUG "Enable halo debugging options" OFF) | ||
option(EVEN "Padded alltoall transpose operations" OFF) | ||
option(BUILD_SHARED_LIBS "Set ON to build a shared library" OFF) | ||
set (IO_BACKEND "mpi" CACHE STRING "Default IO backend (mpi (default) or adios2)") | ||
set_property(CACHE IO_BACKEND PROPERTY STRINGS mpi adios2) | ||
|
||
set(AUTHOR "Stefano Rolfo;Charles Moulinec;Paul Bartholomew") | ||
set(AUTHOR_DETAILS "[email protected];[email protected];[email protected]") | ||
set(DESCRIPTION "Building 2decomp&fft using cmake") | ||
|
||
message(STATUS "building ${PROJECT_NAME}") | ||
|
||
include(GNUInstallDirs) | ||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}) | ||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) | ||
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR}) | ||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/opt" CACHE PATH "..." FORCE) | ||
endif() | ||
|
||
# Add support for CMAKE_DEPENDENT_OPTION | ||
INCLUDE(CMakeDependentOption) | ||
INCLUDE(CMakeParseArguments) | ||
|
||
# make sure that the default is a RELEASE | ||
if (NOT CMAKE_BUILD_TYPE) | ||
set (CMAKE_BUILD_TYPE RELEASE CACHE STRING | ||
"Choose the type of build, options are: None Dev Debug Release." | ||
FORCE) | ||
endif (NOT CMAKE_BUILD_TYPE) | ||
|
||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_SOURCE_DIR}/cmake/compilers" "${CMAKE_SOURCE_DIR}/cmake/fft") | ||
|
||
if (BUILD_TARGET MATCHES "gpu") | ||
include(D2D_GPU) | ||
endif (BUILD_TARGET MATCHES "gpu") | ||
|
||
include(D2D_MPI) | ||
|
||
# FFT options | ||
if (BUILD_TARGET MATCHES "gpu") | ||
set(FFT_Choice "cufft" CACHE STRING "FFT for XCompact3d project (with GPU cufft is the default)") | ||
else () | ||
set(FFT_Choice "generic" CACHE STRING "FFT for XCompact3d project (generic is the default)") | ||
endif (BUILD_TARGET MATCHES "gpu") | ||
set_property(CACHE FFT_Choice PROPERTY STRINGS generic fftw fftw_f03 mkl cufft) | ||
|
||
# Set now compilers flags | ||
include(D2D_Compilers) | ||
include(D2D_Profilers) | ||
include(fft) | ||
|
||
# Create a static library for the fft | ||
add_subdirectory(src) | ||
|
||
# Add tests | ||
option(BUILD_TESTING "Build with tests" OFF) | ||
if (${BUILD_TESTING}) | ||
add_subdirectory(examples) | ||
endif (${BUILD_TESTING}) | ||
|
||
# Add a prettify target | ||
add_custom_target(format sh ${CMAKE_SOURCE_DIR}/scripts/format.sh | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
|
||
# # Create an example dir with all input.i3d example files | ||
# option(BUILD_TESTING "Build with tests" ON) | ||
# set(test_dir "${PROJECT_BINARY_DIR}/Test") | ||
# message(STATUS "Before test main ${test_dir}") | ||
# if (${BUILD_TESTING}) | ||
# file(MAKE_DIRECTORY ${test_dir}) | ||
# include(CTest) | ||
# message(STATUS "MPI INCL ALSO FOUND: ${MPI_INCLUDE_PATH}") | ||
# message(STATUS "MPI EXEC: ${MPIEXEC_EXECUTABLE}") | ||
# file(MAKE_DIRECTORY ${test_dir}/App) | ||
# add_test(NAME TestAPP COMMAND ${MPIEXEC_EXECUTABLE} -n ${MPIEXEC_MAX_NUMPROCS} ${CMAKE_INSTALL_PREFIX}/bin/xcompact3d WORKING_DIRECTORY ${test_dir}/App) | ||
# #if (PFUNIT_FOUND) | ||
# # file(MAKE_DIRECTORY ${test_dir}/Verif_x_00) | ||
# # add_test(NAME Test_dx_00 COMMAND ${MPIEXEC_EXECUTABLE} -n ${MPIEXEC_MAX_NUMPROCS} ${CMAKE_INSTALL_PREFIX}/bin/verif_x_00 WORKING_DIRECTORY ${test_dir}/Verif_x_00) | ||
# #endif (PFUNIT_FOUND) | ||
# endif() | ||
|
Oops, something went wrong.