Search

link to homepage

Institute for Advanced Simulation (IAS)

Navigation and service


Running configure on JuGene Compute Nodes

Running configure on a system which requires cross-compiling like Blue Gene/P is often tricky. The configure script tries to start small pieces of code to check the environment.

Starting configure within a LoadLeveler job works much better than using llrun for executing every small program.

Here is an example how this can be done. The compiler settings, flags and execution steps highly depend on the software package and have to be taken from the install documentation.

# @ job_name = HDF5_Config
# @ comment = "BG/P Configure / 32"
# @ error = $(job_name).$(host).$(jobid).out
# @ output = $(job_name).$(host).$(jobid).out
# @ environment = COPY_ALL;
# @ wall_clock_limit = 00:30:00
# @ notification = never
# @ notify_user = t.user@fz-juelich.de
# @ job_type = bluegene
# @ bg_size = 32
# @ queue
echo "============================================="
BG_BASE="/bgsys/drivers/ppcfloor"
export CC="mpcc"
export CXX="mpCC"
export F77="mpxlf"
export F90="mpxlf90"
export F9X="mpxlf90"

BG_INCLUDE="-I$BG_BASE/comm/include \
-I$BG_BASE/arch/include \
-I$BG_BASE/gnu-linux/powerpc-bgp-linux/sys-include "

export CFLAGS="-O3 -qarch=450 $BG_INCLUDE "
export FFLAGS="-O3 -qarch=450 $BG_INCLUDE "
export CXXFLAGS="-O3 -qarch=450 $BG_INCLUDE "

export RUNSERIAL="mpirun -np 1 "
export RUNPARALLEL="mpirun -np $${NPROCS:=3} "

./configure --enable-parallel --enable-fortran --disable-cxx --disable-stream-vfd

echo "============================================="
make
echo "============================================="
make check


Servicemeu

Homepage