Dear all,
I am facing issues I don't seem able to resolve. Hopefully someone here will have an answer or a hint.
Here's the context. I have to couple two software pieces via Python:
Piece 1:
- fortran 90 code built into shared libraries
- built with openmpi 1.6.4 / ifort 15.0.2
- uses mpi, openmp and some legacy libs that can not be rebuilt
- a python interface to the main routine is created via f2py
Piece 2:
- C++ code with Python interface generated by Swig
- uses mpi and some routines from Pièce 1's shared libraries
- compiled with distutils => the default linker is g++ as Python has been compiled with
Python:
- python 2.7, built with GNU (no intel C/C++ compiler on my machine)
- the main script must execute some ops from "Piece 2" then some ops from "Piece 1"
Today, I am able to execute Piece 1 or Piece 2 code through a python script. However the environment is different. My problem is to be able to call both in the same script. I have read here that I have to link everythin with ifort. Well, as Python has been compiled with GNU, it'll need a hack to change the linker but I am not even sure it is the solution.
What would be your roadmap if you had to set up a coupling like this?
Best regards,
Ekaterina.