mpiCheckPhaseHook: use low-level env HWLOC_XMLFILE in all MPI implementations

HWLOC_XMLFILE is lower-level than PRTE_MCA_hwloc_use_topo_file.
Setting PRTE_MCA_hwloc_use_topo_file require processes managed by prterun/mpiexec.
While setting HWLOC_XMLFILE will always work in sandbox environment.
This commit fix the annoying error message
"[hwloc/linux] failed to find sysfs cpu topology directory, aborting linux discovery."
When running mpi4py related python tests not managed by mpiexec.

qbisi fd12b140 8d74a87f

+3 -1
+3 -1
pkgs/by-name/mp/mpiCheckPhaseHook/mpi-check-hook.sh
··· 55 55 # The solution is to use a preset cpu topology file and disable ucx model. 56 56 57 57 # Disable sysfs cpu topology directory discovery. 58 - export PRTE_MCA_hwloc_use_topo_file="@topology@" 58 + export HWLOC_XMLFILE="@topology@" 59 59 # Use the network model ob1 instead of ucx. 60 60 export OMPI_MCA_pml=ob1 61 61 ;; ··· 68 68 MVAPICH) 69 69 # Disable CPU pinning 70 70 export MV2_ENABLE_AFFINITY=0 71 + # Disable sysfs cpu topology directory discovery. 72 + export HWLOC_XMLFILE="@topology@" 71 73 ;; 72 74 esac 73 75