Skip to content

Instantly share code, notes, and snippets.

@link89
Created March 25, 2025 07:40
Show Gist options
  • Select an option

  • Save link89/86a768b9c28a51eb289019840047f8ba to your computer and use it in GitHub Desktop.

Select an option

Save link89/86a768b9c28a51eb289019840047f8ba to your computer and use it in GitHub Desktop.
Script to build libbeef and its modulefile

Notes

  • use Intel OneAPI 2022 for CentOS 7, OneAPI 2023 requires high version of glibc
#!/bin/bash
set -e
[ -f build.done ] || {
module purge
module add compiler/2022.0.1
./configure CC=icc --prefix=/data/share/lib/libbeef/latest --enable-optmax
make
sudo make install
touch build.done
}
sudo mkdir -p /data/share/base/modulefiles/chem/libbeef
cat <<EOF | sudo tee /data/share/base/modulefiles/chem/libbeef/latest
#%Module1.0
module-whatis "Loads libbeef library (version: latest)"
set root /data/share/lib/libbeef/latest
prepend-path PATH \$root/bin
prepend-path LIBRARY_PATH \$root/lib
prepend-path LD_LIBRARY_PATH \$root/lib
setenv LIBBEEF_HOME \$root
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment