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