Andrej Prsa, on Fri 30 Oct 2015 09:17:32 -0400, wrote:
> > Can you have a startup script set
> > HWLOC_XMLFILE=/common/path/${hostname}.xml in the system-wide
> > environment?
> 
> That's precisely what I'd been trying, but it proved exceedingly
> difficult to figure out what environment file is read when mpirun is
> run directly, when torque runs the job, etc. It seems that neither
> bashrc nor profile do the job, so I'm now exploring possibilities for
> ssh environment variable injection... I'll keep digging, thanks a lot
> for your help and pointers.

Perhaps running something like

mpiexec sh -c "/usr/bin/env HWLOC_XMLFILE=/common/path/\${hostname}.xml 
theapplication"

?

Samuel

Reply via email to