-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 25.04.2017 um 17:27 schrieb Reuti: > Hi, > > In case Open MPI is moved to a different location than it was installed into > initially, one has to export OPAL_PREFIX. While checking for the availability > of the GridEngine integration, I exported OPAL_PREFIX but obviously with a > typo and came to the conclusion that it's not available, as I did a: > > $ export PATH=… > $ export LD_LIBRARY_PATH=… > $ export OPAL_PREFIX=anything_with_a_typo_or_nothing_at_all > $ ompi_info | grep grid > > There was no indication, that `ompi_info` listed only part of the usual > output because of the faulty OPAL_PREFIX. When I recheck now, even the exit > code of `ompi_info` is still 0 in this case. > > I suggest to include some tests in `ompi_info` whether the set OPAL_PREFIX > makes sense. For now it lists just the set value in the "Prefix:" line and > that's all. > > Expected behavior: If `ompi_info` can't find any modules in the specified > place, an appropriate output should go to stderr and the exit code set to 1. No one commented on this. As the purpose of `ompi_info` is to check the installation (according to its man page), something should really be improved here. It's even possible to have both a 2.0.2 and 2.1.0 installed but only one in the $PATH of course, which may lead to: $ ~/local/openmpi-2.0.2_gcc-4.7.2_shared/bin/ompi_info -V Open MPI v2.0.2 Looks fine, but getting the full output: $ ~/local/openmpi-2.0.2_gcc-4.7.2_shared/bin/ompi_info Package: Open MPI reuti Distribution Open MPI: 2.1.0 shows a different Open MPI version as `mpiexec` and alike are in the actual set $PATH (not 2.0.2) (the former seems to be a constant in `ompi_info`, while the latter comes from a loaded library). Having a static version it's different: $ ~/local/openmpi-2.0.2_gcc-4.7.2_static/bin/ompi_info -V Open MPI v2.0.2 $ ~/local/openmpi-2.0.2_gcc-4.7.2_static/bin/ompi_info Package: Open MPI reuti Distribution Open MPI: 2.0.2 - -- Reuti -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iEYEARECAAYFAlkHa38ACgkQo/GbGkBRnRredgCeNmACv+HyJX2ERsltN+U+Zvs5 1wwAn22+zQBQVcf5d19zPxLbhqq81fqh =fd5O -----END PGP SIGNATURE----- _______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users