Compare commits

...

19 Commits
master ... main

Author SHA1 Message Date
Antonio Trande 48ffda45ac Release 8.1.1 | Enable colamd support 2022-10-02 18:47:26 +02:00
Fedora Release Engineering 3a285e327e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 09:44:44 +00:00
Antonio Trande 6ade723781 Release 8.1.0 2022-07-07 20:21:50 +02:00
Antonio Trande 1a562b293d Release 8.0.0 2022-07-03 11:34:59 +02:00
Antonio Trande c81e57164f Release 7.2.0| Add CMake build method 2022-04-23 16:02:06 +02:00
Fedora Release Engineering a4d446888b - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 01:57:57 +00:00
Fedora Release Engineering 4ab3e1c8f2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 18:34:35 +00:00
Fedora Release Engineering 0b7cef3af8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 21:19:38 +00:00
Tom Stellard d10c339e0c Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-12 00:05:40 +00:00
Iñaki Úcar ee0beb014a https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager 2020-08-28 23:15:57 +02:00
Fedora Release Engineering 437da15f6d - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 09:23:19 +00:00
Fedora Release Engineering 95a11345ba - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 11:47:24 +00:00
Dave Love 6501f5815a Revert sources to 6.1.1 version 2020-04-15 15:58:50 +00:00
Dave Love 7763b76e3c Bump release for rebuild 2020-04-15 15:21:26 +00:00
Dave Love 2605a26127 - Introduce epoch and revert incompatible change to 6.3.1 2020-04-15 08:39:59 +00:00
Dave Love 20cb81f7fa Update to 6.3.1 2020-04-09 15:01:05 +00:00
Fedora Release Engineering 3d055daa11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 00:42:31 +00:00
Dave Love 17e9ebd451 - New version 2019-09-12 13:29:43 +01:00
Orion Poplawski 6eeac9f52d ptscotch-openmpi-devel-parmetis is missing from RHEL8 for some reason 2019-09-08 16:03:55 -06:00
7 changed files with 409 additions and 67 deletions

6
.gitignore vendored
View File

@ -4,3 +4,9 @@
/superlu_dist_5.4.0.tar.gz
/superlu_dist_6.0.0.tar.gz
/superlu_dist_6.1.0.tar.gz
/superlu_dist_6.1.1.tar.gz
/superlu_dist_6.3.1.tar.gz
/superlu_dist-7.2.0.tar.gz
/superlu_dist-8.0.0.tar.gz
/superlu_dist-8.1.0.tar.gz
/superlu_dist-8.1.1.tar.gz

View File

@ -1 +1 @@
SHA512 (superlu_dist_6.1.0.tar.gz) = dde1f8f47d2f2ff58f2421b563770ccd08b8ff1b5a2386d212554e6a283fd6a717dc2a20a31315727a2063e0c382a7fd94105ec608a6c99e54a68aace1bd7f3b
SHA512 (superlu_dist-8.1.1.tar.gz) = db3c23bbf66a68f27256625d4bbe889558caf1e6411f8128016d767bd686e4dc9a7986ae267ec579ef6bf637730f1280748804b746b4578c3b79fc2d139d2a4d

View File

@ -0,0 +1,19 @@
--- a/superlu_dist.pc.orig.in 2018-12-09 21:29:35.000000000 +0100
+++ b/superlu_dist.pc.in 2019-02-24 14:58:05.388656330 +0100
@@ -1,12 +1,12 @@
prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@pkgconfig_libdir@
-includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
+libdir=@CMAKE_INSTALL_LIBDIR@
+includedir=@CMAKE_INSTALL_INCLUDEDIR@
Name: @CMAKE_PROJECT_NAME@
Description: Distributed-memory direct solution of sparse systems of linear equations
Version: @PROJECT_VERSION@
URL: https://portal.nersc.gov/project/sparse/superlu/
-Libs: -L${libdir} -lsuperlu_dist
+Libs: -L@CMAKE_INSTALL_LIBDIR@ -lsuperlu_dist
Libs.private: @BLAS_LIB@ @LAPACK_LIB@ @PARMETIS_LIB@ @COLAMD_LIB@ @COMBBLAS_LIB@ -lm
-Cflags: -I${includedir}
+Cflags: -I@CMAKE_INSTALL_INCLUDEDIR@

View File

@ -18,7 +18,7 @@
SuperLUroot =
DSUPERLULIB = $(SuperLUroot)/SRC/libsuperlu_dist.a
BLASDEF = -DUSE_VENDOR_BLAS
BLASLIB = -lopenblas
BLASLIB = -lflexiblas
LIBS = $(DSUPERLULIB) -lptscotchparmetis -lmetis -lscotch \
-lptscotch -lptscotcherr -lptscotcherrexit $(BLASLIB)

View File

@ -0,0 +1,16 @@
Index: superlu-dist/TEST/CMakeLists.txt
===================================================================
--- a/TEST/CMakeLists.orig.txt
+++ b/TEST/CMakeLists.txt
@@ -7,8 +7,9 @@
endif ()
set(MATRICES ../EXAMPLE/g20.rua) # sample sparse matrix from a file
-set(NPROWS 1 2 5) # process rows
-set(NPCOLS 1 2 3) # process columns
+# longer tests take 1000 sec or timeout, so don't run them
+set(NPROWS 1 2) # process rows
+set(NPCOLS 1 2) # process columns
set(NVAL 9 19) # generated matrix dimensions
set(NRHS 1 3) # number of RHS
# set(FILLRATIO 2 10) # estimated fill ratio

View File

@ -0,0 +1,12 @@
Index: superlu-dist/SRC/get_perm_c.c
===================================================================
--- SRC/get_perm_c_parmetis.orig.c 2019-02-08 17:30:10.000000000 +0100
+++ SRC/get_perm_c_parmetis.c 2019-10-25 21:14:01.111512796 +0200
@@ -27,6 +27,7 @@
#include "superlu_dist_config.h"
#ifdef HAVE_PARMETIS
#include "parmetis.h"
+#include "scotch.h"
#endif
#include "superlu_ddefs.h"

View File

@ -2,51 +2,19 @@
# Copyright (c) 2018 Dave Love, University of Manchester
# MIT licence, per Fedora policy.
# Following scalapack
%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64}
%ifarch %{openblas_arches}
%bcond_without openblas
%else
%bcond_with openblas
# This flag prevents the linkage to libptscotch.so
%undefine _ld_as_needed
# Choose the build method
%bcond_without cmake
%bcond_with manual
# Choose if using 64-bit integers for indexing sparse matrices
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
%bcond_with index64
%endif
%bcond_without check
%if 0%{?el6}%{?el7}
# For good enough C++
%global dts devtoolset-7-
%endif
Name: superlu_dist
Version: 6.1.0
Release: 3%{?dist}
Summary: Solution of large, sparse, nonsymmetric systems of linear equations
License: BSD
URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
Source0: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_dist_%version.tar.gz
Source1: superlu_dist-make.inc
# Use CFLAGS in INSTALL/Makefile (was only failing on some targets)
Patch1: superlu_dist-inst.patch
BuildRequires: scotch-devel
BuildRequires: %{?dts}gcc-c++
%if %{with openblas}
BuildRequires: openblas-devel
# [else] Probably not worth a bundled provides for the bundled partial cblas.
%endif
# The test program runs if we link with -lmetis but crashes if linked with
# -lscotchmetis.
BuildRequires: metis-devel
%ifarch %power64
%if 0%{?el6}
%bcond_with mpich
%else
%bcond_without mpich
%endif
%else
%bcond_without mpich
%endif
%bcond_without openmpi
%if %{with openmpi}
@ -62,10 +30,90 @@ BuildRequires: metis-devel
# For library soname. Start at one in case we need the incompatible
# v4 packaged separately.
%if %{with manual}
%global major 1
%global minor 3
%global minor 4
%global miner 0
%global sover %major.%minor.%miner
%endif
# Following scalapack
%bcond_without optimized_blas
%if 0%{?fedora} || 0%{?rhel} >= 9
%global blaslib flexiblas
%if %{with index64}
%global OPENBLASLINK -lflexiblas64
%global OPENBLASLIB /libflexiblas64.so
%else
%global OPENBLASLINK -lflexiblas
%global OPENBLASLIB /libflexiblas.so
%endif
%else
%global blaslib openblas
%if %{with index64}
%global OPENBLASLINK -lopenblaso64
%global OPENBLASLIB /libopenblaso64.so
%else
%global OPENBLASLINK -lopenblaso
%global OPENBLASLIB /libopenblaso.so
%endif
%endif
%bcond_without check
%if %{with cmake}
# Enable CombBLAS support
%bcond_with CombBLAS
%endif
# RHEL8 does not provide Metis64
%if %{with index64}
BuildRequires: metis64-devel
%global METISLINK -lmetis64
%global METISLIB %{_libdir}/libmetis64.so
%global METISINC %{_includedir}/metis64.h
%else
BuildRequires: metis-devel
%global METISLINK -lmetis
%global METISLIB %{_libdir}/libmetis.so
%global METISINC %{_includedir}/metis.h
%endif
%if 0%{?el7}
# For good enough C++
%global dts devtoolset-7-
%endif
Name: superlu_dist
Version: 8.1.1
Release: 1%{?dist}
Epoch: 1
Summary: Solution of large, sparse, nonsymmetric systems of linear equations
License: BSD
URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
Source0: https://github.com/xiaoyeli/superlu_dist/archive/v%version/%name-%version.tar.gz
Source1: %name-make.inc
# Use CFLAGS in INSTALL/Makefile (was only failing on some targets)
Patch0: %name-inst.patch
Patch1: %name-fix_pkgconfig_creation.patch
Patch3: %name-scotch_parmetis.patch
# Longer tests take 1000 sec or timeout, so don't run them
Patch4: %name-only_short_tests.patch
BuildRequires: scotch-devel
BuildRequires: %{?dts}gcc-c++, dos2unix, chrpath
%if %{with cmake}
BuildRequires: cmake3
%endif
%if %{with optimized_blas}
BuildRequires: %{blaslib}-devel
%endif
BuildRequires: suitesparse-devel
%global desc \
@ -96,7 +144,13 @@ This version uses MPI and OpenMP.
%if %{with openmpi}
%package openmpi
Summary: Solution of large, sparse, nonsymmetric systems of linear equations - openmpi
Requires: openmpi%{?_isa}
BuildRequires: openmpi-devel
# ptscotch-openmpi-devel-parmetis unavailable on rhel8 ??
BuildRequires: ptscotch-openmpi-devel >= 6.0.5 %{!?el8:ptscotch-openmpi-devel-parmetis >= 6.0.5}
%if %{with CombBLAS}
BuildRequires: combblas-openmpi-devel
%endif
Requires: gcc-gfortran%{?_isa}
%description openmpi
%desc
@ -105,10 +159,9 @@ This is the openmpi version.
%package openmpi-devel
Summary: Development files for %name-openmpi
BuildRequires: openmpi-devel ptscotch-openmpi-devel-parmetis
BuildRequires: ptscotch-openmpi-devel
Requires: openmpi-devel%{?_isa}
Requires: %name-openmpi%{?_isa} = %version-%release
Requires: %name-openmpi%{?_isa} = %{epoch}:%version-%release
Provides: %name-openmpi-static = %{epoch}:%version-%release
%description openmpi-devel
Development files for %name-openmpi
@ -124,8 +177,13 @@ Documentation for %name
%if %{with mpich}
%package mpich
Summary: Solution of large, sparse, nonsymmetric systems of linear equations - mpich
BuildRequires: mpich-devel ptscotch-mpich-devel ptscotch-mpich-devel-parmetis
Requires: mpich%{?_isa}
BuildRequires: mpich-devel
BuildRequires: ptscotch-mpich-devel >= 6.0.5
BuildRequires: ptscotch-mpich-devel-parmetis >= 6.0.5
%if %{with CombBLAS}
BuildRequires: combblas-mpich-devel
%endif
Requires: gcc-gfortran%{?_isa}
%description mpich
%desc
@ -136,7 +194,8 @@ This is the mpich version.
Summary: Development files for %name-mpich
Requires: mpich-devel%{?_isa}
Requires: ptscotch-mpich-devel%{?_isa} ptscotch-mpich-devel-parmetis%{?_isa}
Requires: %name-mpich%{?_isa} = %version-%release
Requires: %name-mpich%{?_isa} = %{epoch}:%version-%release
Provides: %name-mpich-static = %{epoch}:%version-%release
%description mpich-devel
Development files for %name-mpich
@ -144,12 +203,21 @@ Development files for %name-mpich
%prep
%setup -q -n SuperLU_DIST_%version
cp %SOURCE1 make.inc
%patch1 -p1 -b .orig
%autosetup -n superlu_dist-%version -N
%if %{with manual}
cp %SOURCE1 make.inc
%patch0 -p1 -b .orig
%endif
%if %{with cmake}
dos2unix CMakeLists.txt
%patch1 -p1 -b .fix_pkgconfig_creation
%endif
%patch4 -p1 -b .only_short_tests
%build
%if %{with manual}
%{?dts:source /opt/rh/devtoolset-7/enable}
export CFLAGS="%build_cflags" LDFLAGS="%build_ldflags" CXXFLAGS="%build_cxxflags"
# This order to leave openmpi version in place for %%check
@ -159,8 +227,8 @@ openmpi) %_openmpi_load ;;
mpich) %_mpich_load ;;
esac
find -name \*.[oa] | xargs rm 2>/dev/null || true # no "clean" target
%if %{with openblas}
make SuperLUroot=$(pwd) INCLUDEDIR=$(pwd)/SRC V=1
%if %{with optimized_blas}
make SuperLUroot=$(pwd) BLASLIB=%{OPENBLASLINK} INCLUDEDIR=$(pwd)/SRC V=1
%else
make blaslib HEADER=. BLASLIB='../libblas.a' INCLUDEDIR=%_includedir V=1
make SuperLUroot=$(pwd) BLASDEF= BLASLIB='../libblas.a' INCLUDEDIR=$(pwd)/SRC V=1
@ -170,11 +238,9 @@ pushd tmp
ar x ../SRC/libsuperlu_dist.a
mpicxx -shared -Wl,-soname=libsuperlu_dist.so.%major \
-o ../$m/libsuperlu_dist.so.%sover *.o -fopenmp \
-lptscotchparmetis -lscotchmetis -lscotch -lptscotch \
-lptscotcherr -lptscotcherrexit \
%if %{with openblas}
-lopenblas \
%endif
-lptscotchparmetis -lscotchmetis -lscotch -lptscotch \
-lptscotcherr -lptscotcherrexit \
%{?with_optimized_blas:%OPENBLASLINK} \
%{?__global_ldflags}
popd
case $m in
@ -186,10 +252,108 @@ mpich)
%_mpich_unload ;;
esac
done
%endif
# Manual build method
%if %{with cmake}
%if 0%{?el7}
%{?dts:source /opt/rh/devtoolset-7/enable}
%endif
%if %{with openmpi}
%{_openmpi_load}
mkdir -p build/openmpi
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-7/enable
%endif
export CC=$MPI_BIN/mpicc
export CXX=$MPI_BIN/mpic++
export CXXFLAGS="%optflags -I$MPI_INCLUDE"
export LDFLAGS="%build_ldflags -L$MPI_LIB -lptscotch"
%cmake3 -B build/openmpi -DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_STATIC_LIBS:BOOL=FALSE \
-DCMAKE_Fortran_COMPILER:FILEPATH=$MPI_BIN/mpifort \
-DMPIEXEC_EXECUTABLE:FILEPATH=$MPI_BIN/mpiexec \
%if %{with CombBLAS}
-DTPL_COMBBLAS_INCLUDE_DIRS:PATH="$MPI_INCLUDE/CombBLAS;$MPI_INCLUDE/CombBLAS/3DSpGEMM;$MPI_INCLUDE/CombBLAS/Applications;$MPI_INCLUDE/CombBLAS/BipartiteMatchings" \
-DTPL_COMBBLAS_LIBRARIES:STRING=$MPI_LIB/libCombBLAS.so -DTPL_ENABLE_COMBBLASLIB:BOOL=ON \
%endif
-DTPL_ENABLE_COLAMD=ON -DTPL_COLAMD_INCLUDE_DIRS:PATH=%{_includedir}/suitesparse -DTPL_COLAMD_LIBRARIES:STRING=%{_libdir}/libcolamd.so \
-DTPL_BLAS_LIBRARIES:BOOL=ON -DTPL_BLAS_LIBRARIES:FILEPATH=%{_libdir}%{OPENBLASLIB} -DTPL_ENABLE_LAPACKLIB:BOOL=OFF -DTPL_LAPACK_LIBRARIES:BOOL=OFF \
-DMPI_C_HEADER_DIR:PATH="$MPI_INCLUDE -I%{METISINC}" \
-DMPI_C_LINK_FLAGS:STRING="-L$MPI_LIB -lptscotch -lptscotcherr -lptscotcherrexit -L%{_libdir} %{METISLINK} -lscotch -lcolamd" \
-DMPI_CXX_LINK_FLAGS:STRING="-L$MPI_LIB -lptscotch -lptscotcherr -lptscotcherrexit -L%{_libdir} %{METISLINK} -lscotch -fopenmp" \
%if 0%{?fedora} || 0%{?rhel} < 8
-DTPL_PARMETIS_INCLUDE_DIRS:PATH=$MPI_INCLUDE \
-DTPL_PARMETIS_LIBRARIES:STRING="$MPI_LIB/libptscotchparmetis.so;%{METISLIB}" \
%endif
%if %{with index64}
-DXSDK_INDEX_SIZE=64 \
%else
-DXSDK_INDEX_SIZE=32 \
%endif
%if 0%{?rhel} && 0%{?rhel} >= 8
-DTPL_ENABLE_PARMETISLIB:BOOL=OFF \
%endif
-Denable_double:BOOL=ON -Denable_complex16:BOOL=ON \
-Denable_examples:BOOL=ON -Denable_tests:BOOL=ON -DBUILD_TESTING:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_INSTALL_BINDIR:PATH=$MPI_BIN -DCMAKE_INSTALL_INCLUDEDIR:PATH=$MPI_INCLUDE/%{name} \
-DCMAKE_INSTALL_LIBDIR:PATH=$MPI_LIB
%make_build V=1 -C build/openmpi
%{_openmpi_unload}
%endif
%if %{with mpich}
%{_mpich_load}
mkdir -p build/mpich
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-7/enable
%endif
export CC=$MPI_BIN/mpicc
export CXX=$MPI_BIN/mpic++
export CFLAGS="%optflags -DPRNTlevel=0 -DDEBUGlevel=0"
export CXXFLAGS="%optflags -I$MPI_INCLUDE"
export LDFLAGS="%build_ldflags -L$MPI_LIB -lptscotch"
%cmake3 -B build/mpich -DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_STATIC_LIBS:BOOL=FALSE \
-DCMAKE_Fortran_COMPILER:FILEPATH=$MPI_BIN/mpifort \
-DMPIEXEC_EXECUTABLE:FILEPATH=$MPI_BIN/mpiexec \
%if %{with CombBLAS}
-DTPL_COMBBLAS_INCLUDE_DIRS:PATH="$MPI_INCLUDE/CombBLAS;$MPI_INCLUDE/CombBLAS/3DSpGEMM;$MPI_INCLUDE/CombBLAS/Applications;$MPI_INCLUDE/CombBLAS/BipartiteMatchings" \
-DTPL_COMBBLAS_LIBRARIES:STRING=$MPI_LIB/libCombBLAS.so -DTPL_ENABLE_COMBBLASLIB:BOOL=ON \
%endif
-DTPL_ENABLE_COLAMD:BOOL=ON -DTPL_COLAMD_INCLUDE_DIRS:PATH=%{_includedir}/suitesparse -DTPL_COLAMD_LIBRARIES:FILEPATH=%{_libdir}/libcolamd.so \
-DTPL_BLAS_LIBRARIES:BOOL=ON -DTPL_BLAS_LIBRARIES:FILEPATH=%{_libdir}%{OPENBLASLIB} -DTPL_ENABLE_LAPACKLIB:BOOL=OFF -DTPL_LAPACK_LIBRARIES:BOOL=OFF \
-DMPI_C_HEADER_DIR:PATH="$MPI_INCLUDE -I%{METISINC}" \
-DMPI_C_LINK_FLAGS:STRING="-L$MPI_LIB -lptscotch -lptscotcherr -lptscotcherrexit -L%{_libdir} %{METISLINK} -lscotch -fopenmp -lcolamd" \
-DMPI_CXX_LINK_FLAGS:STRING="-L$MPI_LIB -lptscotch -lptscotcherr -lptscotcherrexit -L%{_libdir} %{METISLINK} -lscotch" \
%if 0%{?fedora} || 0%{?rhel} < 8
-DTPL_PARMETIS_INCLUDE_DIRS:PATH=$MPI_INCLUDE \
-DTPL_PARMETIS_LIBRARIES:STRING="$MPI_LIB/libptscotchparmetis.so;%{METISLIB}" \
%endif
%if %{with index64}
-DXSDK_INDEX_SIZE=64 \
%else
-DXSDK_INDEX_SIZE=32 \
%endif
%if 0%{?rhel} && 0%{?rhel} >= 8
-DTPL_ENABLE_PARMETISLIB:BOOL=OFF \
%endif
-Denable_double:BOOL=ON -Denable_complex16:BOOL=ON \
-Denable_examples:BOOL=ON -Denable_tests:BOOL=ON -DBUILD_TESTING:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_INSTALL_BINDIR:PATH=$MPI_BIN -DCMAKE_INSTALL_INCLUDEDIR:PATH=$MPI_INCLUDE/%{name} \
-DCMAKE_INSTALL_LIBDIR:PATH=$MPI_LIB
%make_build -C build/mpich
%{_mpich_unload}
%endif
%endif
# CMake build method
%install
%if %{with manual}
for m in %mpich %openmpi; do
case $m in
openmpi) %_openmpi_load ;;
@ -209,12 +373,43 @@ openmpi) %_openmpi_unload ;;
mpich) %_mpich_unload ;;
esac
done
%endif
# Manual build method
%if %{with cmake}
%if %{with openmpi}
%{_openmpi_load}
%make_install -C build/openmpi
# Make sure all header files are installed
install -m644 SRC/*.h %buildroot$MPI_INCLUDE/superlu_dist/
rm -rf %buildroot$MPI_LIB/EXAMPLE
rm -rf %buildroot$MPI_LIB/superlu_dist/FORTRAN/CMakeFiles
chrpath -r $MPI_LIB %buildroot$MPI_LIB/libsuperlu_dist*.so*
%{_openmpi_unload}
%endif
%if %{with mpich}
%{_mpich_load}
%make_install -C build/mpich
# Make sure all header files are installed
install -m644 SRC/*.h %buildroot$MPI_INCLUDE/superlu_dist/
rm -rf %buildroot$MPI_LIB/EXAMPLE
rm -rf %buildroot$MPI_LIB/superlu_dist/FORTRAN/CMakeFiles
chrpath -r $MPI_LIB %buildroot$MPI_LIB/libsuperlu_dist*.so*
%{_mpich_unload}
%endif
%endif
# CMake build method
%check
# This is hanging inconsistently in koji, normally on i686 and arm. I
# can't debug it, so let's hope it doesn't deadlock in realistic
# situations.
%if %{with check}
%check
%if %{with manual}
%{?dts:source /opt/rh/devtoolset-7/enable}
pushd EXAMPLE
%if %{with openmpi}
@ -224,8 +419,36 @@ pushd EXAMPLE
export OMPI_MCA_rmaps_base_oversubscribe=1
mpirun -n 4 ../pddrive -r 2 -c 2 g20.rua
%endif
%endif
make clean
%endif
# Manual build method
%if %{with cmake}
%if %{with openmpi}
%{_openmpi_load}
pushd EXAMPLE
# Do not perform on rhel8
# rhbz#1744780
%if 0%{?fedora}
export OMPI_MCA_rmaps_base_oversubscribe=1
mpirun -n 4 -v ../build/openmpi/EXAMPLE/pddrive -r 2 -c 2 g20.rua
%endif
popd
%{_openmpi_unload}
%endif
%if %{with mpich}
%{_mpich_load}
pushd EXAMPLE
export OMPI_MCA_rmaps_base_oversubscribe=1
mpirun -n 4 -v ../build/mpich/EXAMPLE/pddrive -r 2 -c 2 g20.rua
popd
%{_mpich_unload}
%endif
%endif
# CMake build method
%endif
# Check
%if %{with openmpi}
%files openmpi
@ -234,7 +457,11 @@ make clean
%files openmpi-devel
%_libdir/openmpi/lib/*.so
%_includedir/openmpi-%_arch/superlu_dist
%_libdir/openmpi/lib/*.a
%if %{with cmake}
%_libdir/openmpi/lib/pkgconfig/*.pc
%endif
%_includedir/openmpi-%_arch/superlu_dist/
%endif
%files doc
@ -248,11 +475,73 @@ make clean
%files mpich-devel
%_libdir/mpich/lib/*.so
%_includedir/mpich-%_arch/superlu_dist
%_libdir/mpich/lib/*.a
%if %{with cmake}
%_libdir/mpich/lib/pkgconfig/*.pc
%endif
%_includedir/mpich-%_arch/superlu_dist/
%endif
%changelog
* Sun Oct 02 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:8.1.1-1
- Release 8.1.1
- Enable colamd support
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jul 07 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:8.1.0-1
- Release 8.1.0
- Remove obsolete conditional macros
* Sun May 29 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:8.0.0-1
- Release 8.0.0
- Provide static libraries
* Sat Apr 16 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:7.2.0-3
- Enable complex16 libraries
* Fri Apr 15 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:7.2.0-2
- Make sure installing all header libraries
* Sat Apr 02 2022 Antonio Trande <sagitter@fedoraproject.org> - 1:7.2.0-1
- Release 7.2.0
- Enable CombBLAS support
- Add CMake build method
- Specific index_size
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Aug 28 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1:6.1.1-6
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.1-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Apr 13 2020 Dave Love <loveshack@fedoraproject.org> - 1:6.1.1-3
- Introduce epoch and revert incompatible change to 6.3.1
* Thu Apr 9 2020 Dave Love <loveshack@fedoraproject.org> - 6.3.1-1
- New version
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Sep 12 2019 Dave Love <loveshack@fedoraproject.org> - 6.1.1-1
- New version
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild