[sunrise.wiki] push by - Edited wiki page Compiling through web user interface. on 2015-03-17 19:03 GMT

0 views
Skip to first unread message

sun...@googlecode.com

unread,
Mar 17, 2015, 3:03:32 PM3/17/15
to sunrisemcr...@googlegroups.com
Revision: 6fa4767a9a96
Branch: default
Author: mig...@gmail.com
Date: Tue Mar 17 19:03:18 2015 UTC
Log: Edited wiki page Compiling through web user interface.
https://code.google.com/p/sunrise/source/detail?r=6fa4767a9a96&repo=wiki

Modified:
/Compiling.wiki

=======================================
--- /Compiling.wiki Tue Dec 9 23:22:44 2014 UTC
+++ /Compiling.wiki Tue Mar 17 19:03:18 2015 UTC
@@ -35,7 +35,10 @@

This will copy the Boost headers to $HOME/include/boost_1_48_0/boost and
will build the libraries and put them in $HOME/lib/boost_1_48_0. You
obviously need to set the toolset to whatever compiler you'll be using, see
the "getting started" instructions
[http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html "getting
started"] for more info or if you run into trouble. Also, `<n>` should be
some reasonable number depending on how many cores your machine has,
because building Boost in parallel greatly decreases the build time.

-Note that you only need the `--user-config` option if you are building
Boost.MPI, which will be required once the new MPI-enabled version of
Sunrise is released. The user-config.jam file should contain "`using
mpi ;`". If you run into problems, google around for building Boost.MPI on
your particular platform.
+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`.
@@ -53,7 +56,7 @@
export CXX=icpc
export CXXFLAGS='-g -O2 -pthread'
export LDFLAGS=-pthread
- ./configure --prefix=$HOME --enable-threadsafe --disable-cxx-flags-preset
--enable-serialization
+ ./configure --prefix=$HOME --enable-threadsafe --disable-cxx-flags-preset
--enable-serialization --with-boost-libdir=$HOME/lib/boost/
make lib
make install
}}}
Reply all
Reply to author
Forward
0 new messages