Permalink
Browse files

improved the README

  • Loading branch information...
1 parent 3cfff80 commit 8a66daff4f2a180912d6ff939e067b2f333a48ba basti committed Jul 23, 2009
View
@@ -73,12 +73,19 @@ OPTIONAL REQUIREMENTS:
* Colpack from http://www.cscapes.org/coloringpage/software.htm or alternatively http://github.com/b45ch1/colpack . Colpack is needed for sparse Jacobians and sparse Hessians
-INSTALLATION:
- 1) Rename ``SConstruct.EXAMPLE`` to ``SConstruct`` and modify it to fit your system and build with ``scons``.
- 2) If you don't have colpack installed calling scons will only compile _adolc.so but fail to compile _sparse.so
- 3) Using ``scons`` is more convenient to work with when you often pull new versions.
- Alternatively you can try to use distutils, but support for it lags behind scons: i.e. 1) rename ``setup.py.EXAMPLE`` to ``setup.py`` to fit your system, then 2) run ``python setup.py build_ext --inplace``.
- 4) Add the directory to your ``PYTHONPATH``.
+INSTALLATION (my recommendation):
+At the moment, the installation using setup.py is lagging behind. Below, the way I would install ``PYADOLC``. If you do it another way, send me an email or fork this project and I'll incorporate it.
+Alternatively you can _try_ to use distutils, but support for it lags behind scons: i.e. 1) rename ``setup.py.EXAMPLE`` to ``setup.py`` to fit your system, then 2) run ``python setup.py build_ext --inplace``.
+
+ 1) Install ADOL-C, to use PYADOLC with sparse support, you do _not_ have to do ./configure --with-sparse. A simple ./configure does the job
+ 2) (OPTIONAL) Install ColPack
+ 3) ``cd $HOME``
+ 4) ``git clone git://github.com/b45ch1/pyadolc.git``
+ 5) ``cd pyadolc``
+ 6) Rename ``SConstruct.EXAMPLE`` to ``SConstruct`` and modify it to fit your system
+ 7) Run ``scons``, this will create the shared libraries ``_adolc.so`` and ``_sparse.so``. If you don't have colpack installed calling scons will only compile ``_adolc.so`` but fail to compile ``_sparse.so``.
+ 8) Using ``scons`` is more convenient to work with when you often pull new versions.
+ 9) Add the directory to your ``PYTHONPATH``.
E.g. add the following line in your ``~/.bashrc`` file:
``export PYTHONPATH=$PYTHONPATH:/home/walter/workspace/pyadolc``
View
@@ -1,5 +1,9 @@
-2 3 4
+2 4 8
1 1 0
1 2 1
-2 2 2
-2 3 3
+1 3 2
+1 4 3
+2 1 4
+2 2 5
+2 3 6
+2 4 7
@@ -29,7 +29,10 @@
independent(ax)
ay = ax
for i in range(N):
- ay <<= ay * ay
+ if i%3==0:
+ ay <<= ay * ay
+ else:
+ ay = ay * ay
dependent(ay)
trace_off()
@@ -10,29 +10,29 @@
\begin{tabular}{|r|l|r|r|r|r||r|r||r|r|r|r|} \hline
code & op & loc & loc & loc & loc & double & double & value & value & value & value \\ \hline
33 & start of tape & & & & & & & & & & \\ \hline
-39 & take stock op & & & 3 & 0 & &$ 0.000000e+00 $& & &$ nan $&$ 0.000000e+00 $\\ \hline
-1 & assign ind & & & & 1 & &$ 1.000000e+00 $& & & &$ 1.000000e+00 $\\ \hline
+40 & assign d one & & & & 0 & & & & & &$ 1.000000e+00 $\\ \hline
+1 & assign ind & & & & 0 & &$ 1.000000e+00 $& & & &$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 0 & 0 & 0 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 0 & 0 & 1 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
15 & mult a a & & 1 & 1 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-15 & mult a a & & 2 & 2 & 2 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
-2 & assign dep & & & & 2 & & & & & &$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 2 & 2 & 3 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 3 & 3 & 4 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 4 & 4 & 4 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 4 & 4 & 5 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 5 & 5 & 6 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 6 & 6 & 6 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 6 & 6 & 7 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 7 & 7 & 8 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 8 & 8 & 8 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 8 & 8 & 9 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 9 & 9 & 10 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 10 & 10 & 10 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 10 & 10 & 11 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 11 & 11 & 12 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 12 & 12 & 12 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+15 & mult a a & & 12 & 12 & 13 & & & &$ 1.000000e+00 $&$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
+2 & assign dep & & & & 13 & & & & & &$ 1.000000e+00 $\\ \hline
0 & death not & & & 0 & 21 & & & & &$ 1.000000e+00 $&$ 1.000000e+00 $\\ \hline
32 & end of tape & & & & & & & & & & \\ \hline
\end{tabular}\end{document}

0 comments on commit 8a66daf

Please sign in to comment.