Hello OpenMPI User List --

I'm looking into making a binary distribution of my software. On my system, I 
link it to OpenMPI compiled with `--with-tm=/opt/torque/` to get Torque 
integration as suggested [here][1]. How do I accomplish this in a binary 
distribution of my program for use in an arbitrary user's environment?

 - I can distribute my binary files as compiled on my system, but I worry I'll 
get link errors if the version of OpenMPI my code linked to during compile time 
doesn't match the OpenMPI on their system.
 - I can bundle OpenMPI with my software. I could compile my bundled OpenMPI 
**with** `--with-tm` for Torque support. This way, my program running on their 
system will link just fine to OpenMPI; but will it work with their Torque 
environment (if they use Torque)? It looks like maybe it only uses the file 
`include/tm.h` which is stable between versions of Torque? But if this was 
straight forward, I'd have though the OpenMPI developers could have 
incorporated this into OpenMPI itself w/o my help.
 - I can bundle OpenMPI with my software. I could compile my bundled OpenMPI 
**without** Torque support. I don't think there would be a problem running on 
their system, but would they be able to get Torque support with a `--hostfiles` 
parameter to `mpirun` as described [here][2]? And that link doesn't confirm 
that `--hostfiles` works.
 - I haven't researched this at all, but is it reasonable to bundle Torque with 
my program? I'd think not...
 - I could distribute the source of my code so users can integrate whatever 
compatibility they desire. I could also compile without MPI support at all 
which would disable some of my features.

Maybe some of the link errors I'm describing are not likely given recent 
versions of dependencies? I don't want to have to figure out which systems this 
will work on *after* releasing my binary distribution.

Thanks for any suggestions!

Amos.


  [1]: http://www.open-mpi.org/faq/?category=building#build-rte-tm
  [2]: https://www.open-mpi.org/faq/?category=tm#tm-use-hostfile

Reply via email to