Skip to content

Commit

Permalink
include configure patch to search for pmi.h instead of slurm/pmi.h ((#…
Browse files Browse the repository at this point in the history
  • Loading branch information
koomie committed Oct 3, 2017
1 parent 76ee8e0 commit c270800
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions components/mpi-families/mpich/SOURCES/config.pmix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- configure 2017-10-03 10:46:22.703531036 -0500
+++ configure.orig 2017-10-03 10:45:53.825761551 -0500
@@ -46438,7 +46438,7 @@
fi


-ac_fn_c_check_header_mongrel "$LINENO" "pmi.h" "ac_cv_header_slurm_pmi_h" "$ac_includes_default"
+ac_fn_c_check_header_mongrel "$LINENO" "slurm/pmi.h" "ac_cv_header_slurm_pmi_h" "$ac_includes_default"
if test "x$ac_cv_header_slurm_pmi_h" = xyes; then :

else

4 changes: 3 additions & 1 deletion components/mpi-families/mpich/SPECS/mpich.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Group: %{PROJ_NAME}/mpi-families
URL: http://www.mpich.org
Source0: http://www.mpich.org/static/downloads/%{version}/%{pname}-%{version}.tar.gz
Source1: OHPC_macros
Patch0: config.pmix.patch

Requires: prun%{PROJ_DELIM}
Requires: perl
Expand All @@ -50,6 +51,7 @@ Message Passing Interface (MPI) standard.
%prep

%setup -q -n %{pname}-%{version}
%patch0 -p0

%build
# OpenHPC compiler designation
Expand All @@ -63,7 +65,7 @@ module load pmix
--with-pm=no --with-pmi=slurm \
%endif
%if 0%{with_pmix}
LIBS="-L%{OHPC_LIBS}/pmix/lib -lpmix" --with-pm=none --with-pmi=slurm \
CFLAGS="-L${PMIX_INC}" LIBS="-L${PMIX_LIB} -lpmix" --with-pm=none --with-pmi=slurm \
%endif
|| { cat config.log && exit 1; }

Expand Down

0 comments on commit c270800

Please sign in to comment.