... | ... | @@ -153,10 +153,13 @@ We provide Python binding to FargOCA object model trough [pybind11](https://pybi |
|
|
##### 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).
|
|
|
|
|
|
```
|
|
|
$ cmake -DPYTHON_INCLUDE_DIR=<directory containing the python.h header> -DPYTHON_LIBRARY=<complete python library path> [...] <srcdir>
|
|
|
$ cmake -DENABLE_PYTHON_BONDINDS=On [...] <srcdir>
|
|
|
```
|
|
|
|
|
|
Due to increased build time, Python bindings are not enabled be default.
|
|
|
|
|
|
##### 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
|
... | ... | @@ -169,10 +172,6 @@ tmp/ccaFaZFz.s: Assembler messages: |
|
|
|
|
|
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
|
|
|
```
|
... | ... | |