Folks,

This is a followup of a thread that initially started at http://www.open-mpi.org/community/lists/users/2016/07/29635.php


The user is trying to build Open MPI with PGI compiler and libslurm.la/libpmi.la support, and slurm was built with gcc compiler.


At first, it fails because the "-pthread" flag is pulled from libslurm.la/libpmi.la, but this flag is not supported by PGI compilers.

A workaround is to pass the -noswitcherror flag to the PGI compiler (so the -pthread flag is discarded and a warning message is issued, but PGI compiler does not fail). Unfortunatly, that does not work because libtool does does not pass this flag to the PGI compiler.


Of course, one option is to tell the user to rebuild slurm with PGI, so libslurm.la/libpmi.la do not have the "-pthread" flag.

A nicer though arguable option is to hack libtool to silently drop the "-pthread" flag with PGI compiler is used (i made a proof of concept, and this is a two lines patch).

An other cleaner option is to hack libtool so it pass -noswitcherror to PGI compiler, but i do not know how to achieve this.


Any thoughts ?


Cheers

Reply via email to