Initial commit
This commit is contained in:
16
groups/soft_group/openmpi/CMakeLists.txt
Normal file
16
groups/soft_group/openmpi/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# 调用通用编译函数安装 OpenMPI
|
||||
#
|
||||
|
||||
# 定义下载地址,调用通用编译函数
|
||||
set(MPI_URL "https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-${OPENMPI_VER}.tar.gz")
|
||||
SrcBuild(openmpi ${OPENMPI_VER} ${MPI_URL})
|
||||
|
||||
# 可选:生成 module 环境文件
|
||||
SET_INSTALL_PATH(openmpi ${OPENMPI_VER} MPI_INSTALL)
|
||||
if(GENERATE_MODULE_FILES)
|
||||
GenerateModule(openmpi ${OPENMPI_VER} ${MPI_INSTALL})
|
||||
DEPLOY_MSG("Generated module file for openmpi")
|
||||
else()
|
||||
DEPLOY_MSG("Skipping module file generation (GENERATE_MODULE_FILES=OFF)")
|
||||
endif()
|
||||
Reference in New Issue
Block a user