Building Qbox on BlueGene/Q
Posted: Fri Feb 21, 2014 12:52 am
This post describes the steps used to build Qbox on the Argonne National Laboratory BlueGene/Q computer (Mira).
The following assumptions are made:
- the bash shell is used
- the BLAS, FFTW2, LAPACK, SCALAPACK libraries are available in /soft/libraries/alcf/current/xl. This may have to be modified on another BG/Q installation.
1) Building the Xerces-C library
Choose a directory to build the library. In the following, we build the library in $HOME/software/xerces.
Get a copy of the Xerces-C 2.8.0 library from apache.org:
Untar the Xerces-C source tar file
Go to the xerces-c-src_2_8_0 directory and define the XERCESCROOT environment variable to be that location
Go to the src/xercesc directory, run the runConfigure script and make
The library is now available in $HOME/software/xerces/xerces-c-src_2_8_0/lib/libxerces-c.a.
2) Building Qbox
Get the Qbox distribution tar file and the bgp-omp.mk makefile in $HOME/qb/
Define the TARGET environment variable as bgp-omp (note: do not include ".mk" in the TARGET string) and build
The Qbox executable is $HOME/qb/qbox-1.58.0/src/qb.
The following assumptions are made:
- the bash shell is used
- the BLAS, FFTW2, LAPACK, SCALAPACK libraries are available in /soft/libraries/alcf/current/xl. This may have to be modified on another BG/Q installation.
1) Building the Xerces-C library
Choose a directory to build the library. In the following, we build the library in $HOME/software/xerces.
Code: Select all
$ mkdir -p $HOME/software/xerces
$ cd $HOME/software/xerces
Code: Select all
$ wget http://www.apache.org/dist/xerces/c/2/sources/xerces-c-src_2_8_0.tar.gz
Code: Select all
$ tar zxf xerces-c-src_2_8_0.tar.gz
Code: Select all
$ cd xerces-c-src_2_8_0
$ export XERCESCROOT=$PWD
Code: Select all
$ cd src/xercesc
$ ./runConfigure -p linux -c bgxlc -x bgxlC -n fileonly -r none -s
$ make
2) Building Qbox
Get the Qbox distribution tar file and the bgp-omp.mk makefile in $HOME/qb/
Code: Select all
$ mkdir $HOME/qb
$ cd $HOME/qb
$ wget http://fpmd.ucdavis.edu/software/qbox/qbox-1.58.0.tgz
$ tar zxf qbox-1.58.0.tgz
$ cd src
$ wget http://eslab.ucdavis.edu/software/qbox/makefiles/bgq-omp.mk
Code: Select all
$ export TARGET=bgp-omp
$ make