Revision: c29295ca1f16
Branch: default
Author:
mig...@gmail.com
Date: Tue Mar 17 19:06:31 2015 UTC
Log: Edited wiki page Compiling through web user interface.
https://code.google.com/p/sunrise/source/detail?r=c29295ca1f16&repo=wiki
Modified:
/Compiling.wiki
=======================================
--- /Compiling.wiki Tue Mar 17 19:03:18 2015 UTC
+++ /Compiling.wiki Tue Mar 17 19:06:31 2015 UTC
@@ -37,8 +37,10 @@
Note that you only need the `--user-config` option if you are building
Boost.MPI. The user-config.jam file should contain "`using mpi ;`". If you
run into problems, google around for building Boost.MPI on your particular
platform. As an example below is the user-config.jam used to compile
sunrise on NERSC Edison
+{{{
using mpi : /opt/cray/craype/2.2.1/bin/CC : <find-shared-library>mpich ;
using intel-linux : : :
<compileflags>-I/opt/cray/mpt/7.1.1/gni/mpich2-intel/140/include/
<linkflags>-L/opt/cray/mpt/7.1.1/gni/mpich2-intel/140/lib/ ; # You will
need to comment the 'using intel-linux' on project-config.jam if you have
it in user-config.jam
+}}}
If you use the above commands, Boost will install its include files in a
directory `$PREFIX/include/boost-<version>/boost`. For the files to be
found without specifically adding that directory to the include directives,
I suggest you do
`ln -s $PREFIX/include/boost-<version>/boost $PREFIX/include/boost`.
@@ -56,7 +58,7 @@
export CXX=icpc
export CXXFLAGS='-g -O2 -pthread'
export LDFLAGS=-pthread
- ./configure --prefix=$HOME --enable-threadsafe --disable-cxx-flags-preset
--enable-serialization --with-boost-libdir=$HOME/lib/boost/
+ ./configure --prefix=$HOME --enable-threadsafe --disable-cxx-flags-preset
--enable-serialization --with-boost-libdir=$HOME/lib/boost_<version>/
make lib
make install
}}}