[mvapich-discuss] Forcing PSM on a machine with both PSM and PSM2 libs

Adam T. Moody moody20 at llnl.gov
Tue Aug 2 17:50:03 EDT 2016


Hello MVAPICH team,

I have a machine that has both PSM and PSM2 installed.  I would like to 
create a build that links to PSM, but configure always picks PSM2 if 
it's available, even if I specify "--with-device=ch3:psm --with-psm".  I 
think the following patch would help, although I've not been able to 
test it yet.


--- a/src/mpid/ch3/channels/psm/subconfigure.m4    2016-03-29 
17:52:51.000000000 -0700
+++ b/src/mpid/ch3/channels/psm/subconfigure.m4    2016-08-02 
14:43:03.743895000 -0700
@@ -60,6 +60,13 @@
      AC_CHECK_LIB(psm2, psm2_init, , [
      AC_MSG_ERROR(['psm2 library not found.  Did you specify 
--with-psm2= or --with-psm2-lib=?'])
      ])
+elif test "x$with_psm" != "x" ; then
+    AC_CHECK_HEADER([psm.h], , [
+     AC_MSG_ERROR(['psm.h not found.  Did you specify --with-psm= or 
--with-psm-include=?'])
+    ])
+    AC_CHECK_LIB(psm_infinipath, psm_init, , [
+     AC_MSG_ERROR(['psm_infinipath library not found.  Did you specify 
--with-psm= or --with-psm-lib=?'])
+    ])
  else
      AC_CHECK_HEADER([psm.h], [have_psm=yes], [have_psm=no])
      AC_CHECK_HEADER([psm2.h], [have_psm2=yes], [have_psm2=no])


Can you verify this?

Thanks,

-Adam



More information about the mvapich-discuss mailing list