setenv OMP_NUM_THREADS 2A script can then be run to confirm the use of both threads:
> labelit.python labelit_sources/labelit/excercise_omp.py The parallel region is executed by thread 1 The parallel region is executed by thread 0 e= 2.718282 pi= 3.141568 OK
[path to source tree]/labelit/bundle/install_python_here.csh
base/bin/python [path to source tree]/cctbx_sources/libtbx/configure.py --enable-openmp-if-possible=True labelit source setpaths.csh make
./install --help #gives all the options ./install --prefix=[] --nproc=[] --openmp #asks for compile with open MP...fails with warning message about incompatibility with GUI.
./install --prefix=[] --nproc=[] --openmp --no-gui...now it should work in full. Will not be possible to run the Phenix GUI, but everything else OK.
labelit.python $PHENIX/labelit/excercise_omp.py...will enumerate all the threads being used.
Src/multiarraymodule.c
and
Src/ranlib.c
:
#include "Python.h"Then on all platforms:
cd Numeric-24.2
python setup.py install
wget http://www.zlib.net/zlib-1.2.2.tar.gz
gunzip -c zlib-1.2.2.tar.gz | tar xf -
cd zlib-1.2.2
make clean
#previous PIL versions use shared z libary: ./configure -s
./configure
make
wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz gunzip -c Imaging-1.1.6.tar.gz | tar xf - cd Imaging-1.1.6On the Tru64 (and possibly the Irix) platform, the source code must be edited.
path.c
:
#include "pyconfig.h"
setup.py
. python setup.py install
lib/_rl_accel.c
must be edited. Instead of
raising the error
"Don't know how to define STRICMP"
in line 22,
define it as follows:
# define STRICMP strcasecmpImportant: If you use the most recent ReportLab release (v1.20) you will have to download and install _rl_accel as a separate package.
cd reportlab
python setup.py install