CentOS Linux release 7.9.2009 (Core)
Linux login2.cm.cluster 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
For compiling and/or running SDPB, you have to load modules first:
module load cmake/3.25.1 gcc/9.2.0 openmpi/4.1.5 boost/1_81_0_openmpi-4.1.1_gcc-9.2.0 eigen/eigen mpfr/4.0.2
You may run module -t list
to view loaded modules,
and module purge
to unload all modules.
You may also add this command to your ~/.bashrc
file, so that modules will load automatically.
SDPB is installed in /central/home/vdommes/install/sdpb-<VERSION>
folder,
where <VERSION>
denotes specific version.
You may list all available versions via
ls /central/home/vdommes/install | grep sdpb
Fo example, sdpb-master
is built from the latest master branch (
run sdpb --version
to see commit hash, e.g. SDPB 2.5.1-130-g88b1c9ae
),
and sdpb-2.6.0
is a stable 2.6.0 release.
Examples below are for sdpb-master
.
You may replace it with another version, e.g. sdpb-2.6.0
.
In that case, please refer
to 2.6.0 documentation.
/central/home/vdommes/install/sdpb-master/bin/sdpb --help
sbatch /central/home/vdommes/install/sdpb-master/share/sdpb_example.sh
This command submits sdpb_example.sh
to
the queueing system.
sdpb_example.sh
loads modules and runs sdp2input
+sdpb
for a simple problem.
See script code and comments for more details.
Script output is written to the log file in the current directory, e.g.:
./sdpb_example.sh.26306151.out
.
SDPB output files are written to the ./out/
folder in the current directory.
TODO: Note that /usr/include/gmp.h
is present on login node, but may be absent on compute nodes. In that case one
should compile on a login node.
git clone https://gitlab.com/bootstrapcollaboration/elemental.git
cd elemental
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/install -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc
make && make install
cd ../..
git clone https://github.com/Tencent/rapidjson.git
cp -r rapidjson/include $HOME/install
wget http://www.libarchive.org/downloads/libarchive-3.7.1.tar.xz
tar -xf libarchive-3.7.1.tar.xz
cd libarchive-3.7.1
./configure --prefix=$HOME/install
make && make install
cd ../..
./waf configure --elemental-dir=$HOME/install --rapidjson-dir=$HOME/install --libarchive-dir=$HOME/install --mpfr-dir=/central/software/mpfr/4.0.2 --prefix=$HOME/install/sdpb-master
./waf # -j 1
./test/run_all_tests.sh
./waf install
cd ..