5 Apr
2014
5 Apr
'14
20:15
* Pengfei Hao (intijk@gmail.com) [20140321 15:50]:
export CC="%{_libdir}/mpi/gcc/$mpi/bin/mpicc" export FC="%{_libdir}/mpi/gcc/$mpi/bin/mpif90" export F77="%{_libdir}/mpi/gcc/$mpi/bin/mpif77" export LD_LIBRARY_PATH="%{_libdir}/mpi/gcc/$mpi/%_lib"
Make some assumptions and do an environment export seems the only way until now.
WRONG! Look at how mpi-selector does its work. Set the MPI implementation you'd like to use and then I'd try sourcing /etc/profile.d/mpi-selector.sh like it would be done for a login shell. That should set all variables as needed, maybe will need to export them. hth Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org