forked from pool/mvapich2
Accepting request 506398 from home:NMoreyChaisemartin:branches:science:HPC
- Change install dir to allow multiple flavor to be installed at the same time - Fix bsc#1045955 - Fix mvapich2-psm package to use libpsm (TrueScale) - Add mvapich2-psm2 package using libpsm2 (OmniPath) OBS-URL: https://build.opensuse.org/request/show/506398 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=12
This commit is contained in:
parent
7e231e1c32
commit
8f0431bdfd
@ -1,4 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>testsuite</package>
|
<package>testsuite</package>
|
||||||
<package>psm</package>
|
<package>psm</package>
|
||||||
|
<package>psm2</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 26 12:24:30 UTC 2017 - nmoreychaisemartin@suse.com
|
||||||
|
|
||||||
|
- Change install dir to allow multiple flavor to be installed
|
||||||
|
at the same time
|
||||||
|
- Fix bsc#1045955
|
||||||
|
- Fix mvapich2-psm package to use libpsm (TrueScale)
|
||||||
|
- Add mvapich2-psm2 package using libpsm2 (OmniPath)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 26 09:37:42 UTC 2017 - nmoreychaisemartin@suse.com
|
Mon Jun 26 09:37:42 UTC 2017 - nmoreychaisemartin@suse.com
|
||||||
|
|
||||||
|
@ -27,9 +27,11 @@
|
|||||||
%define testsuite 1
|
%define testsuite 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define _prefix /usr/%_lib/mpi/gcc/mvapich2
|
%define module_name mvapich2%{pack_suff}
|
||||||
|
%define _prefix /usr/%_lib/mpi/gcc/%{module_name}
|
||||||
%define _libexecdir %{_prefix}/%{_lib}
|
%define _libexecdir %{_prefix}/%{_lib}
|
||||||
%define _benchmarkdir %{_libexecdir}/osu-micro-benchmarks
|
%define _benchmarkdir %{_libexecdir}/osu-micro-benchmarks
|
||||||
|
%define _moduledir /usr/share/modules/gnu-%{module_name}
|
||||||
|
|
||||||
Name: mvapich2%{pack_suff}
|
Name: mvapich2%{pack_suff}
|
||||||
Summary: OSU MVAPICH2 MPI package
|
Summary: OSU MVAPICH2 MPI package
|
||||||
@ -69,15 +71,13 @@ BuildRequires: xorg-x11-devel
|
|||||||
%if "%{flavor}" == "psm"
|
%if "%{flavor}" == "psm"
|
||||||
ExclusiveArch: %ix86 x86_64
|
ExclusiveArch: %ix86 x86_64
|
||||||
BuildRequires: infinipath-psm-devel
|
BuildRequires: infinipath-psm-devel
|
||||||
%ifarch x86_64
|
|
||||||
BuildRequires: libpsm2-devel
|
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{flavor}" == "psm2"
|
||||||
|
ExclusiveArch: x86_64
|
||||||
|
BuildRequires: libpsm2-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: mpi-selector
|
Requires: mpi-selector
|
||||||
# Meta provides to make sure all flavour conflicts
|
|
||||||
Provides: mvapich2-internal
|
|
||||||
Conflicts: otherproviders(mvapich2-internal)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is an MPI-3 implementation which includes all MPI-1 features. It
|
This is an MPI-3 implementation which includes all MPI-1 features. It
|
||||||
@ -94,13 +94,10 @@ Requires: libibverbs-devel
|
|||||||
Requires: librdmacm-devel
|
Requires: librdmacm-devel
|
||||||
%if "%{flavor}" == "psm"
|
%if "%{flavor}" == "psm"
|
||||||
Requires: infinipath-psm-devel
|
Requires: infinipath-psm-devel
|
||||||
%ifarch x86_64
|
%endif
|
||||||
|
%if "%{flavor}" == "psm2"
|
||||||
Requires: libpsm2-devel
|
Requires: libpsm2-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
# Meta provides to make sure all flavour conflicts
|
|
||||||
Provides: mvapich2-internal-devel
|
|
||||||
Conflicts: otherproviders(mvapich2-internal-devel)
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This is an MPI-2 implementation which includes all MPI-1 features. It
|
This is an MPI-2 implementation which includes all MPI-1 features. It
|
||||||
@ -112,9 +109,6 @@ is based on MPICH2 and MVICH.
|
|||||||
Summary: OSU MVAPICH2 MPI package - static libraries
|
Summary: OSU MVAPICH2 MPI package - static libraries
|
||||||
Group: Development/Libraries/Parallel
|
Group: Development/Libraries/Parallel
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
# Meta provides to make sure all flavour conflicts
|
|
||||||
Provides: mvapich2-internal-devel-static
|
|
||||||
Conflicts: otherproviders(mvapich2-internal-devel-static)
|
|
||||||
|
|
||||||
%description devel-static
|
%description devel-static
|
||||||
This is an MPI-3 implementation which includes all MPI-1 and MPI-2 features. It
|
This is an MPI-3 implementation which includes all MPI-1 and MPI-2 features. It
|
||||||
@ -135,6 +129,11 @@ cp /usr/share/automake*/config.* .
|
|||||||
--sysconfdir=%_sysconfdir --libexecdir=%{_libexecdir} \
|
--sysconfdir=%_sysconfdir --libexecdir=%{_libexecdir} \
|
||||||
%if "%{flavor}" == "psm"
|
%if "%{flavor}" == "psm"
|
||||||
--with-device=ch3:psm \
|
--with-device=ch3:psm \
|
||||||
|
--with-psm=/usr \
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" == "psm2"
|
||||||
|
--with-device=ch3:psm \
|
||||||
|
--with-psm2=/usr \
|
||||||
%endif
|
%endif
|
||||||
--without-mpe
|
--without-mpe
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
@ -167,9 +166,9 @@ install -m 0644 CHANGE* %{buildroot}%{_datadir}/doc/mvapich2
|
|||||||
rm -rf %{buildroot}/*
|
rm -rf %{buildroot}/*
|
||||||
|
|
||||||
%else
|
%else
|
||||||
mkdir -p %{buildroot}/usr/share/modules/gnu-mvapich2
|
mkdir -p %{buildroot}%{_moduledir}
|
||||||
|
|
||||||
cat << EOF > %{buildroot}/usr/share/modules/gnu-mvapich2/%{version}
|
cat << EOF > %{buildroot}%{_moduledir}/%{version}
|
||||||
#%%Module
|
#%%Module
|
||||||
proc ModulesHelp { } {
|
proc ModulesHelp { } {
|
||||||
global dotversion
|
global dotversion
|
||||||
@ -186,7 +185,7 @@ prepend-path LD_LIBRARY_PATH %{_libdir}
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > %{buildroot}/usr/share/modules/gnu-mvapich2/.version
|
cat << EOF > %{buildroot}%{_moduledir}/.version
|
||||||
#%%Module1.0
|
#%%Module1.0
|
||||||
set ModulesVersion "%{version}"
|
set ModulesVersion "%{version}"
|
||||||
|
|
||||||
@ -195,27 +194,25 @@ EOF
|
|||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/usr/bin/mpi-selector \
|
/usr/bin/mpi-selector \
|
||||||
--register %{name}-%{version} \
|
--register %{name}%{pack_suff}-%{version} \
|
||||||
--source-dir %{_bindir} \
|
--source-dir %{_bindir} \
|
||||||
--yes
|
--yes
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/usr/bin/mpi-selector --unregister %{name}-%{version} --yes --silent
|
/usr/bin/mpi-selector --unregister %{name}%{pack_suff}-%{version} --yes --silent
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc %{_datadir}/doc
|
%doc %{_datadir}/doc
|
||||||
%dir /usr/%_lib/mpi
|
%dir /usr/%_lib/mpi
|
||||||
%dir /usr/%_lib/mpi/gcc
|
%dir /usr/%_lib/mpi/gcc
|
||||||
%dir /usr/%_lib/mpi/gcc/mvapich2
|
|
||||||
%dir %{_prefix}
|
%dir %{_prefix}
|
||||||
%dir %{_bindir}
|
%dir %{_bindir}
|
||||||
%dir %{_datadir}
|
%dir %{_datadir}
|
||||||
%dir /usr/share/modules
|
|
||||||
%if "%{flavor}" == ""
|
|
||||||
%dir %{_includedir}
|
%dir %{_includedir}
|
||||||
%endif
|
%dir /usr/share/modules
|
||||||
|
%dir %{_moduledir}
|
||||||
%dir %{_mandir}
|
%dir %{_mandir}
|
||||||
%dir %{_mandir}/man1
|
%dir %{_mandir}/man1
|
||||||
%dir %{_mandir}/man3
|
%dir %{_mandir}/man3
|
||||||
@ -223,7 +220,7 @@ EOF
|
|||||||
%dir %{_libexecdir}
|
%dir %{_libexecdir}
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libexecdir}/osu-micro-benchmarks
|
%{_libexecdir}/osu-micro-benchmarks
|
||||||
/usr/share/modules/gnu-mvapich2
|
%{_moduledir}
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user