File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
help ([[
2
2
]] )
3
3
4
- prepend_path (" MODULEPATH" , " /contrib /spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/modulefiles/Core" )
4
+ prepend_path (" MODULEPATH" , " /scratch4/NCEPDEV/stmp/role.epic /spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/modulefiles/Core" )
5
5
-- Needed for openmpi build
6
- prepend_path (" MODULEPATH" , " /scratch1/NCEPDEV/jcsda/jedipara/spack-stack/modulefiles" )
6
+ -- prepend_path("MODULEPATH", "/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/modulefiles")
7
7
8
8
local python_ver = os.getenv (" python_ver" ) or " 3.11.6"
9
9
local stack_gnu_ver = os.getenv (" stack_gnu_ver" ) or " 9.2.0"
10
- local stack_openmpi_ver = os.getenv (" stack_openmpi_ver" ) or " 4.1.5 "
10
+ local stack_openmpi_ver = os.getenv (" stack_openmpi_ver" ) or " 4.1.6 "
11
11
local cmake_ver = os.getenv (" cmake_ver" ) or " 3.23.1"
12
12
local prod_util_ver = os.getenv (" prod_util_ver" ) or " 2.1.1"
13
13
local openblas_ver = os.getenv (" openblas_ver" ) or " 0.3.24"
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ endif()
30
30
if (NOT CMAKE_BUILD_TYPE MATCHES "Debug" )
31
31
add_definitions (-DNDEBUG)
32
32
endif ()
33
+ # Find MPI Package
34
+ find_package (MPI REQUIRED)
33
35
34
36
list (APPEND MGBF_SRC
35
37
kinds.f90
@@ -63,6 +65,8 @@ add_library(${PROJECT_NAME}::mgbf ALIAS mgbf)
63
65
set_target_properties (mgbf PROPERTIES Fortran_MODULE_DIRECTORY "${module_dir} " )
64
66
target_include_directories (mgbf PUBLIC $<BUILD_INTERFACE:${module_dir} >
65
67
$<INSTALL_INTERFACE:include /mgbf>)
68
+ target_link_libraries (mgbf PUBLIC MPI::MPI_Fortran)
69
+
66
70
67
71
install (DIRECTORY ${module_dir} DESTINATION ${CMAKE_INSTALL_PREFIX} /include )
68
72
You can’t perform that action at this time.
0 commit comments