spack install lbann
LBANN uses C++ features provided by newer compilers. If you do not have the necessary compiler, you can use spack to install one. For full details, see the spack documentation.
spack install [email protected]
The above command builds and installs a compiler. It prints the install path as the final line. If successful, then register this compiler with spack using the spack compiler find command, passing the install path as an argument.
spack compiler add /path/to/compiler/install
Here is an example of setting up the local build environment on x86_64 HPC system
cd lbann
mkdir spack_builds; cd spack_builds
../scripts/spack_receipes/build_lbann.sh -c [email protected] -b openblas -m mvapich2
cd gcc-7.1.0_x86_64_mvapich2_openblas_rel/build
make -j all
The build_lbann.sh script roughly does the following steps for this example:
spack setup lbann@local build_type=Release dtype=4 %[email protected] ^elemental@master blas=openblas ^mvapich2
spack setup lbann@local %[email protected] ^mvapich2
mkdir -p gcc-7.1.0_x86_64_mvapich2_openblas_rel/build
cd gcc-7.1.0_x86_64_mvapich2_openblas_rel/build
../spconfig.py ../../..
By default, MVAPICH2 builds for PSM. For an ibverbs build of MVAPICH2, use the following:
../scripts/spack_receipes/build_lbann.sh -c [email protected] -b openblas -m 'mvapich2 fabrics=mrail'
cd examples
source setup_brain_lbann_env.sh
NOTE: Compilation is now done using cmake, please follow the instruction in doc/getting_started
make
Allocate nodes in SLURM:
salloc -N16 --enable-hyperthreads -t 1440 --clear-ssd
./run_lbann_dnn_imagenet.sh -t 2400 -v 10 -e 4 -n 5000,2500,1000 -b 192 -r 0.0001
cd tests
sbatch -N16 --enable-hyperthreads -t 1440 --clear-ssd ./test_imagenet_topologies.sh
Allocate nodes in MOAB:
mxterm 16 256 1440 -A hpclearn