forked from bumps/bumps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.amdahl
30 lines (17 loc) · 1.1 KB
/
README.amdahl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
To use the compiled de stepper and bounds checks use:
(cd bumps/dream && cc compiled.c -I ../../Random123/include/ -O2 -fopenmp -shared -lm -o _compiled.so -fPIC)
Note: OS/X clang doesn't support OpenMP:
(cd bumps/dream && cc compiled.c -I ../../Random123/include/ -O2 -shared -lm -o _compiled.so -fPIC)
This only works when _compiled.so is in the bumps/dream directory. If running
from a pip installed version, you will need to fetch the bumps repository:
$ git clone https://github.com/bumps/bumps.git
$ cd bumps
Compile as above, then find the bumps install path using the following:
$ python -c "import bumps.dream; print(bumps.dream.__file__)"
#dream/path/__init__.py
Copy the compiled module to the install, with the #dream/path printed above:
$ cp bumps/dream/_compiled.so #dream/path
There is no provision for using _compiled.so in a frozen application.
Run with no more than 64 OMP threads. If the number of processors is more than 64, then use:
OMP_NUM_THREADS=64 ./run.py ...
I don't know how OMP_NUM_THREADS behaves if it is larger than the number of processors.