-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`dcp` has a `--grouplock` option and that requires the lustre client. Lustre is now being built in the builder stage of the image and is used to enable lustre build support in MPIFileUtils. The image is debian bookworm, which has deprecated `dpatch` - a required build dependency for older versions of lustre. The latest cray release of lustre 2.15 is being used here.
- Loading branch information
Showing
4 changed files
with
84 additions
and
16 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
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,26 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
if [[ $1 == "" ]]; then | ||
echo "Usage: $0 <Cray lustre tag e.g. cray-2.15.B19>" | ||
exit 1 | ||
fi | ||
CRAY_LUSTRE_VERSION=$1 | ||
|
||
# Determine kernel version and set variables | ||
ls -l /usr/src/ | ||
KERNEL_FLAVOR=$(ls /lib/modules | head -1 | tr '-' '\n' | tail -1) | ||
KERNEL_BASE_VER=$(ls /lib/modules | head -1 | grep -oP '\d+\.\d+\.\d+-\d+') | ||
# LINUX_DIR=$(ls -d -1 /usr/src/linux-headers-${KERNEL_BASE_VER}) | ||
LINUX_DIR=$(ls -d -1 /usr/src/linux-headers-${KERNEL_BASE_VER}-${KERNEL_FLAVOR}) | ||
|
||
git clone --depth=1 https://github.com/Cray/lustre.git | ||
cd lustre | ||
git checkout $CRAY_LUSTRE_VERSION | ||
sh autogen.sh | ||
./configure --disable-server --enable-client --disable-tests --enable-mpitests=no \ | ||
--disable-gss-keyring --enable-gss=no \ | ||
--with-linux=${LINUX_DIR} | ||
make -j "$(nproc || true)" | ||
make install |