diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py index 4dcb107dd1..f90a725ab4 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -201,14 +201,16 @@ def _find_mkl_libs(self, shared): ] ): libs.append(self._xlp64_lib("libmkl_blacs_intelmpi")) - elif any(self.spec.satisfies(m) for m in ["^openmpi", "mpi_family=openmpi"]): + elif any( + self.spec.satisfies(m) for m in ["^openmpi", "^hpcx-mpi", "mpi_family=openmpi"] + ): libs.append(self._xlp64_lib("libmkl_blacs_openmpi")) else: raise RuntimeError( ( - "intel-oneapi-mpi +cluster requires one of ^intel-oneapi-mpi, " + "intel-oneapi-mkl +cluster requires one of ^intel-oneapi-mpi, " "^intel-mpi, ^mpich, ^cray-mpich, mpi_family=mpich, ^openmpi, " - "or mpi_family=openmpi" + "^hpcx-mpi, or mpi_family=openmpi" ) )