... | ... | @@ -131,17 +131,37 @@ It is also possible to [disable MPI](Developer's-corner/Distributed-vs-single-pr |
|
|
|
|
|
##### Python Bindings
|
|
|
|
|
|
We provide (experimental) python binding that requires the [detection the the python development environment](https://cmake.org/cmake/help/v3.0/module/FindPythonLibs.html):
|
|
|
###### Environment detection
|
|
|
|
|
|
We provide (experimental) python binding that requires the [detection the the python development environment](https://cmake.org/cmake/help/v3.0/module/FindPythonLibs.html). Irf automatic
|
|
|
```
|
|
|
$ cmake -DPYTHON_INCLUDE_DIR=<directory containing the python.h header> -DPYTHON_LIBRARY=<complete python library path> [...] <srcdir>
|
|
|
```
|
|
|
|
|
|
|
|
|
###### Weird LTO issue
|
|
|
|
|
|
In some configuration (when gpu activation is accelerated as far as we can tell), different part of the python binding code are compiled with incompatible flags. The symptom is the following trace during the link phase
|
|
|
```
|
|
|
tmp/ccaFaZFz.s: Assembler messages:
|
|
|
/tmp/ccaFaZFz.s:43: Error: symbol `fatbinData' is already defined
|
|
|
/tmp/ccaFaZFz.s:1264: Error: symbol `fatbinData' is already defined
|
|
|
/tmp/ccaFaZFz.s:2485: Error: symbol `fatbinData' is already defined
|
|
|
```
|
|
|
|
|
|
To fix it, just disable LTO (Link Time Optimization) by setting the cmake configuration variable **ENABLE_THIN_LTO** to **Off** (```-DENABLE_THIN_LTO=Off```).
|
|
|
|
|
|
|
|
|
###### Disabling Python bindings
|
|
|
|
|
|
If building the Python bindings is more trouble than its worth, they can be disabled by setting **FARGO_NO_PYTHON** to **On** (```cmake -DFARGO_NO_PYTHON=On ...```),
|
|
|
|
|
|
## Compilation
|
|
|
From the build directory
|
|
|
```
|
|
|
[alainm@pollux build]$ make
|
|
|
```
|
|
|
Now that the makefile system generated by cmake supports parallel build:
|
|
|
Now that the makefile system generated by `cmake` supports parallel build:
|
|
|
```
|
|
|
[alainm@pollux build]$ make -j<nb core>
|
|
|
```
|
... | ... | @@ -157,7 +177,7 @@ $ ctest |
|
|
$
|
|
|
```
|
|
|
|
|
|
It can take some time. Some script have been developped to speed up things on some clusters, see [Machine Specific Stuff](Building#machine-specific-stuff) section.
|
|
|
It can take some time. Some script have been developed to speed up things on some clusters, see [Machine Specific Stuff](Building#machine-specific-stuff) section.
|
|
|
|
|
|
## [Machine specific stuff](User's-Guide/Installation/Machine specific stuff)
|
|
|
|
... | ... | |