Skip to content

Commit c4cc48c

Browse files
benson31bvanessen
andauthored
Remove some logic from the superbuild (#2469)
* Remove some logic that shouldn't have been in the superbuild CMake in the first place. * Fixed whitespace. --------- Co-authored-by: Brian C. Van Essen <vanessen1@llnl.gov>
1 parent ead9cce commit c4cc48c

3 files changed

Lines changed: 7 additions & 19 deletions

File tree

.gitlab/build-and-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ then
179179
cmake --build build-deps
180180
ninja -C build-deps gather-all
181181

182+
# Copy the suggested cmake prefix path to the install tree.
183+
mkdir ${prefix}/logs
184+
cp ${build_dir}/build-deps/lbann_sb_suggested_cmake_install_prefix.sh ${prefix}/logs
185+
182186
# Stamp these commits
183187
cd ${build_dir}/build-deps/aluminum/src && git rev-parse HEAD > ${prefix}/al-prebuilt-hash.txt
184188
cd ${build_dir}/build-deps/hydrogen/src && git rev-parse HEAD > ${prefix}/h-prebuilt-hash.txt

scripts/superbuild/CMakeLists.txt

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,25 +154,8 @@ if (LBANN_SB_BUILD_AWS_OFI_RCCL)
154154
message("export LD_LIBRARY_PATH=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib:\$\{LD_LIBARY_PATH\}\n")
155155
message("-----------------------------------------------------------------\n")
156156
file(APPEND "${CMAKE_BINARY_DIR}/lbann_sb_suggested_cmake_prefix_path.sh"
157-
"export AWS_OFI_RCCL_LIBDIR=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib\n")
158-
file(APPEND "${CMAKE_BINARY_DIR}/lbann_sb_suggested_cmake_prefix_path.sh"
159-
"export LD_LIBRARY_PATH=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib:\$\{LD_LIBRARY_PATH\}\n")
160-
file(APPEND "${CMAKE_INSTALL_PREFIX}/logs/lbann_sb_suggested_cmake_prefix_path.sh"
161-
"export AWS_OFI_RCCL_LIBDIR=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib\n")
162-
file(APPEND "${CMAKE_INSTALL_PREFIX}/logs/lbann_sb_suggested_cmake_prefix_path.sh"
163-
"export LD_LIBRARY_PATH=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib:\$\{LD_LIBRARY_PATH\}\n")
164-
endif ()
165-
166-
if (LBANN_SB_FWD_LBANN_LBANN_WITH_PYTHON_FRONTEND)
167-
message("-----------------------------------------------------------------\n")
168-
message("LBANN was built with support for the Python Front End (PFE) (If you need to install it via pip you can in the LBANN site-packages with):")
169-
message(" python3 -m pip install --target \$\{LBANN_PYTHON_SITE_PACKAGES\} pytest")
170-
message(" python3 -m pip install --target \$\{LBANN_PYTHON_SITE_PACKAGES\} protobuf")
171-
if (LBANN_SB_FWD_LBANN_LBANN_WITH_CNPY)
172-
message("\nLBANN was built with support for the NumPy (If you need to install it via pip you can in the LBANN site-packages with):")
173-
message(" python3 -m pip install --target \$\{LBANN_PYTHON_SITE_PACKAGES\} numpy")
174-
endif ()
175-
message("\n-----------------------------------------------------------------\n")
157+
"export AWS_OFI_RCCL_LIBDIR=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib
158+
export LD_LIBRARY_PATH=${LBANN_SB_AWS_OFI_RCCL_PREFIX}/lib:\$\{LD_LIBRARY_PATH\}\n")
176159
endif ()
177160

178161
# Add a custom target for bundling all things up

scripts/superbuild/ci/ci_core_dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ if [ ! -e ${INSTALL_PREFIX}/logs ]; then
162162
mkdir -p ${INSTALL_PREFIX}/logs
163163
fi
164164
module -t list 2> ${INSTALL_PREFIX}/logs/modules.txt
165+
cp ${BUILD_DIR}/lbann_sb_suggested_cmake_prefix_path.sh ${INSTALL_PREFIX}/logs
165166

166167
pushd ${BUILD_DIR}
167168
ninja

0 commit comments

Comments
 (0)