- Fix hpc builds, add workaround for bsc#1234007.
OBS-URL: https://build.opensuse.org/package/show/science/mumps?expand=0&rev=73
This commit is contained in:
commit
210473d9ba
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
98
Makefile.inc
Normal file
98
Makefile.inc
Normal file
@ -0,0 +1,98 @@
|
||||
#
|
||||
# This file is part of MUMPS 4.9.2, built on Thu Nov 5 07:05:08 UTC 2009
|
||||
# Adapted by Adam Powell from Make.inc/Makefile.gfortran.seq, based on
|
||||
# Roberto C. Sanchez' adaptation from Make.inc/Makefile.G95.seq, based on
|
||||
# Adam Powell's adaptation of Make.inc/Makefile.G95.par
|
||||
#
|
||||
#Begin orderings
|
||||
|
||||
# NOTE that PORD is distributed within MUMPS by default. If you would like to
|
||||
# use other orderings, you need to obtain the corresponding package and modify
|
||||
# the variables below accordingly.
|
||||
# For example, to have Metis available within MUMPS:
|
||||
# 1/ download Metis and compile it
|
||||
# 2/ uncomment (suppress # in first column) lines
|
||||
# starting with LMETISDIR, LMETIS
|
||||
# 3/ add -Dmetis in line ORDERINGSF
|
||||
# ORDERINGSF = -Dpord -Dmetis
|
||||
# 4/ Compile and install MUMPS
|
||||
# make clean; make (to clean up previous installation)
|
||||
#
|
||||
# Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
|
||||
#
|
||||
|
||||
#SCOTCHDIR = /usr
|
||||
#ISCOTCH = -I$(SCOTCHDIR)/scotch/include
|
||||
# You have to choose one among the following two lines depending on
|
||||
# the type of analysis you want to perform. If you want to perform only
|
||||
# sequential analysis choose the first (remember to add -Dscotch in the ORDERINGSF
|
||||
# variable below); for both parallel and sequential analysis choose the second
|
||||
# line (remember to add -Dptscotch in the ORDERINGSF variable below)
|
||||
|
||||
#LSCOTCH = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
|
||||
#LSCOTCH = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
|
||||
|
||||
|
||||
LPORDDIR = $(topdir)/PORD/lib/
|
||||
IPORD = -I$(topdir)/PORD/include/
|
||||
LPORD = -L$(LPORDDIR) -lpord
|
||||
|
||||
#LMETISDIR = /local/metis/
|
||||
#IMETIS = # Metis doesn't need include files (Fortran interface avail.)
|
||||
|
||||
# You have to choose one among the following two lines depending on
|
||||
# the type of analysis you want to perform. If you want to perform only
|
||||
# sequential analysis choose the first (remember to add -Dmetis in the ORDERINGSF
|
||||
# variable below); for both parallel and sequential analysis choose the second
|
||||
# line (remember to add -Dparmetis in the ORDERINGSF variable below)
|
||||
|
||||
#LMETIS = -L$(LMETISDIR) -lmetis
|
||||
#LMETIS = -L$(LMETISDIR) -lparmetis -lmetis
|
||||
|
||||
# The following variables will be used in the compilation process.
|
||||
# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
|
||||
#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
|
||||
ORDERINGSC = $(ORDERINGSF)
|
||||
|
||||
LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
|
||||
IORDERINGSF = $(ISCOTCH)
|
||||
IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
|
||||
|
||||
#End orderings
|
||||
########################################################################
|
||||
################################################################################
|
||||
|
||||
#PLAT =
|
||||
# Library extension, + C and Fortran "-o" option
|
||||
# may be different under Windows
|
||||
LIBEXT = .a
|
||||
OUTC = -o
|
||||
OUTF = -o
|
||||
|
||||
RM = /bin/rm -f
|
||||
#CC = gcc
|
||||
#FC = gfortran
|
||||
#FL = gfortran
|
||||
# keep a space at the end if options have to be separated from lib name
|
||||
AR = ar vr
|
||||
#RANLIB = ranlib
|
||||
RANLIB = echo
|
||||
# See point 17 in the FAQ to have more details on the compilation of mpich with gfortran
|
||||
INCPAR = -I/usr/include
|
||||
LIBPAR = $(SCALAP) $(LAPACK) -L/usr/lib -lmpi
|
||||
INCSEQ = -I$(topdir)/libseq
|
||||
LIBSEQ = $(LAPACK) -L$(topdir)/libseq -lmpiseq$(PLAT)
|
||||
#LIBBLAS = -L/usr/lib/xmm/ -lf77blas -latlas
|
||||
#LIBBLAS = -lblas -llapack
|
||||
LIBOTHERS = -lpthread
|
||||
#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
|
||||
CDEFS = -DAdd_
|
||||
|
||||
#Begin Optimized options
|
||||
OPTF = -O -fPIC
|
||||
OPTL = -O -pie
|
||||
OPTC = -O -fPIC
|
||||
#End Optimized options
|
||||
#INCS = $(INCSEQ)
|
||||
#LIBS = $(LIBSEQ)
|
||||
LIBSEQNEEDED =
|
11
_multibuild
Normal file
11
_multibuild
Normal file
@ -0,0 +1,11 @@
|
||||
<multibuild>
|
||||
<package>serial</package>
|
||||
<package>openmpi4</package>
|
||||
<package>mvapich2</package>
|
||||
<package>scotch-serial</package>
|
||||
<package>scotch-openmpi4</package>
|
||||
<package>gnu-openmpi4-hpc</package>
|
||||
<package>gnu-mvapich2-hpc</package>
|
||||
<package>gnu-mpich-hpc</package>
|
||||
<!-- <package>scotch-mvapich2</package> -->
|
||||
</multibuild>
|
3
mumps-5.3.5.tar.gz
Normal file
3
mumps-5.3.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e5d665fdb7043043f0799ae3dbe3b37e5b200d1ab7a6f7b2a4e463fd89507fa4
|
||||
size 3940501
|
326
mumps.changes
Normal file
326
mumps.changes
Normal file
@ -0,0 +1,326 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 30 22:47:14 UTC 2024 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Fix hpc builds, add workaround for bsc#1234007.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 22 12:29:34 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
- Use %autosetup macro. Allows to eliminate the usage of deprecated
|
||||
%patchN
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 23 19:17:11 UTC 2023 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Disable HPC flavors on i586
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 23 11:55:43 UTC 2023 - Nicolas Morey <nicolas.morey@suse.com>
|
||||
|
||||
- Drop support for obsolete openmpi[123]
|
||||
- Prepare support for openmpi5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 6 17:23:51 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Add missing conflicts to old library package.
|
||||
- Cleanup obsolete parts from spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 3 22:07:56 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Correct name of library packages to match SONAME.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 26 20:24:52 UTC 2021 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Fix name of compat library package (bsc#1184057).
|
||||
- Remove a non-existent Recommends: in non-HPC package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 25 09:48:50 UTC 2021 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
- updated to version 5.3.5, changes are
|
||||
* Fixed 2x2 pivots bug from 5.3.4 release in MPI LDLT factorization
|
||||
* Fixed ICNTL(8)=-2 option during analysis (code and documentation)
|
||||
* Fixed a rare bug (segfault) related to dynamic storage management on numerically difficult matrices
|
||||
* Fixed a rare deadlock in BLR for symmetric matrices
|
||||
* Fixed an uninitialized variable (which could lead to incorrect -19 error)
|
||||
* Minor fix in userguide (CNTL(1) vs. ICNTL(1) in ICNTL(36) description)
|
||||
* Fixed a possible runtime issue during solve, related to "TO_PROCESS" array
|
||||
* Assume ilp64 MPI interface only applies to Fortran in c_example.c
|
||||
* Note on gfortran-10 compilation added
|
||||
* Avoid intent on pointers (F2003-only)
|
||||
* More robust multithreading for matrix reformatting (arrowheads)
|
||||
* Fixed ICNTL(31) interpretation in case of repeated analysis
|
||||
* Fixed multiple mpif.h inclusion (distributed rhs, ifort+openmpi)
|
||||
* Fixed computation of effectively used memory statistics
|
||||
* Improved multithreaded performance of BLR backward solve
|
||||
* Fixed return code in build_mumps_int_def.c + openmp compilation (pgi)
|
||||
* Forbid a loop vectorization in [sdcz]sol_c.F (segfault with ifort)
|
||||
* New feature: distributed right-hand sides
|
||||
* Improved time for arrowheads construction (single MPI case, mainly)
|
||||
* C interface: ability to know if MUMPS_INT is 64-bit from include file
|
||||
* Improved BLR performance when CNTL(1)=0.0 and ICNTL(36)=1
|
||||
* Fixed INFO(34),INFO(35),INFO(37),INFO(38) on processes with rank > 0
|
||||
* More portable MPI_IS_IN_PLACE feature in libseq
|
||||
* Fixed determinant computation when Cholesky ScaLapack is used
|
||||
* Information on advancement (flops done) on each MPI process
|
||||
* Allow rhs_sparse and irhs_sparse to be unassociated if nz_rhs=0
|
||||
* Fixed INFO(30) and INFO(31) computation on MPI processes with rank > 0
|
||||
* OMP collapsed loops: avoid FIRSTPRIVATE on internal loop bound (for pgi)
|
||||
* Fix for compilers not freeing local allocatable arrays (64-bit metis)
|
||||
* Fixed RINFO(5-6) and RINFOG(15-16) metrics (entries=>bytes)
|
||||
* C interface: A_ELT/SCHUR/RHS/REDRHS/RHS_loc/SOL_loc may exceed 2^31 entries
|
||||
* Local Schur (ICNTL(19)=2 or 3) may now exceed 2^31 entries
|
||||
* Fixed internal dynamic storage of blocks with more than 2^31 entries
|
||||
* Fixed a bug in the parallel analysis that limited scalability
|
||||
|
||||
- removed Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch
|
||||
* functionaltiy is included upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 5 20:31:13 UTC 2021 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Disable openmpi4 builds for SLE/Leap < 15.3.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 28 17:52:27 UTC 2021 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Change 'Requires:' to other HPC packages to %requires_eq to depend
|
||||
on the exact version. This should take care of HPC packages ignoring
|
||||
proper ABI versioning.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 23 16:29:56 UTC 2020 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Add build support for gcc10 to HPC build (bsc#1174439).
|
||||
* Remove explicit build dependency for libgomp1.
|
||||
* Add missing compiler versions to openblas and scalapack
|
||||
build dependencies.
|
||||
- Add build support for openmpi4.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 20:05:56 UTC 2020 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- With gcc10, some fortran code started failing to build -
|
||||
add compiler option -std=legacy to fix (bsc#1173549).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 2 07:50:37 UTC 2020 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Add macros to handle building of openmpi1 flavors for serial
|
||||
builds as well (bsc#1172345).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 3 12:06:39 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Set %mpi_ver for scotch-openmpi
|
||||
- Remove requires for libblacs from HPC builds which is not
|
||||
required there.
|
||||
- Add openmpi3 non-HPC build flavor.
|
||||
- Remove libblacs as explicit dependency for HPC build. BLACS
|
||||
is part of scalapack.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 29 22:10:30 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Add support for gcc7 builds for HPC.
|
||||
- Add support for gcc8 and gcc9 builds for HPC (jsc#SLE-7766 &
|
||||
jsc#SLE-8604).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 28 16:16:49 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Disable openmpi1 builds for SLE/Leap > 15.1.
|
||||
- Enable openmpi3 builds for Leap and SLE > 15.1 (jsc#SLE-7773).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 25 21:52:36 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Reflect renaming of openmpi packages to openmpi1 in Tumbleweed,
|
||||
fixes unresolvable packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:47:02 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com>
|
||||
|
||||
- Update Source0, file is gz and not bzip2
|
||||
- Use -ffat-lto-objects to provide proper static library.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 18:59:46 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com>
|
||||
|
||||
- Update to version 5.2.1 (jsc#SLE-9939)
|
||||
* See ChangeLog file or at http://mumps.enseeiht.fr/index.php?page=dwnld
|
||||
- Refresh patch:
|
||||
* Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch
|
||||
- Install the new binaries provided with the examples.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 17 09:42:01 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
- Add BuildRequires libopenblas-gnu-hpc >= 0.3.6 for hpc to avoid
|
||||
to build when openblas library not available (ppc64)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 14:24:22 UTC 2019 - Christian Goll <cgoll@suse.com>
|
||||
|
||||
- added version flavor to scotch-openmpi[23] (bsc#1131426)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 27 22:08:16 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Use -Wl,--whole-archive .. -Wl,--no-whole-archive instead of unpacking
|
||||
static library to build a shared library.
|
||||
- Add dependency to gcc-gfortran to non-HPC build of devel package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 27 18:29:25 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch
|
||||
* Add missing dependency to serialize sub-builds.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 25 05:37:27 UTC 2019 - Torben Mikael Hansen <torhans-build@sciomnis.com>
|
||||
|
||||
- Changed requirements for openmpi (non-hpc) version
|
||||
%%mpi-ver -> %%mpi-ext: openmpi1 flavors omit the version number.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 22 07:15:33 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Add conflicts between scotch and non-scotch flavors of example
|
||||
packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 18:24:28 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Ship header files with devel package for each HPC build (bsc#1125551).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 09:11:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update RPM groups.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 00:37:16 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Add explicit Requires: for matching libblacs2-* to non-HPC library package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 12 07:24:57 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Fix product groups.
|
||||
- Fix dependencies.
|
||||
- Consolidate use of openmpi1, openmpi2, openmpi3 for non-HPC builds.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 11 16:26:11 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Fix License.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 9 13:40:09 UTC 2019 - eich@suse.com
|
||||
|
||||
- Simpify naming scheme.
|
||||
- Fix more dependencies.
|
||||
- Rename package: test -> examples.
|
||||
- Create HPC master package for doc and examples.
|
||||
- Fix shared library builds.
|
||||
- Build example binaries against shared libs for all builds.
|
||||
- Add Makefiles-Serialize-libseq-libplat-mommond_mod-for-parallel-builds.patch:
|
||||
make sure builds are serialized for 'make -j <n>'
|
||||
- Version mumps, requires and buildrequires, remove unneeded buildrequires.
|
||||
- Only include requires for the respecive flavor (non-scotch, scotch).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 8 12:03:01 UTC 2019 - eich@suse.com
|
||||
|
||||
- Split off static packages & their link package (where applicable).
|
||||
- Fix dependencies for devel packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 7 19:51:43 UTC 2019 - eich@suse.com
|
||||
|
||||
- Update to version 5.1.2
|
||||
See Changelog file or http://mumps.enseeiht.fr/index.php?page=dwnld
|
||||
- Convert to full multibuild support: builds with scotch support
|
||||
are separate, now.
|
||||
- Add HPC support (FATE#324151).
|
||||
- Move links from the sequential libraries to the MPI library directory
|
||||
to a separate package, make this package an optional Recommends:
|
||||
of the non-HPC library packages.
|
||||
- Move documentation to separate package.
|
||||
- Disable non-HPC builds and some MPI flavors for SLE.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 20 08:25:43 UTC 2019 - eich@suse.com
|
||||
|
||||
- Fix dependencies: All scotch devel packages come without 'lib'
|
||||
prefix, now.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 8 22:53:16 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Refactor spec for _multibuild, currently non-HPC flavors only.
|
||||
- Setup MPI environment when building MPI flavors, fixes build on
|
||||
Tumbleweed, Leap 15.x, SLE 15.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 21 14:23:53 UTC 2015 - scorot@free.fr
|
||||
|
||||
- fix build against recent scalapack which includes blacs library
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 22 20:20:13 UTC 2013 - scorot@free.fr
|
||||
|
||||
- fix build for Factory and recent openmpi
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 19 21:08:02 UTC 2012 - scorot@free.fr
|
||||
|
||||
- install missing headers for the sequential version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 19 19:40:07 UTC 2012 - scorot@free.fr
|
||||
|
||||
- fix broken requirements of mpi devel packages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 21 17:40:15 UTC 2012 - scorot@free.fr
|
||||
|
||||
- split devel packages with devel and scotch-devel
|
||||
- devel packages don't require scotch-devel anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 20 23:09:48 UTC 2012 - scorot@free.fr
|
||||
|
||||
- fix build with debuginfo enabled
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 20 21:08:35 UTC 2012 - scorot@free.fr
|
||||
|
||||
- minor spec file changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 3 21:47:55 UTC 2012 - scorot@free.fr
|
||||
|
||||
- remove atlas deps and link againt ref blas
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 13 14:11:40 UTC 2012 - scorot@free.fr
|
||||
|
||||
- fix build on i586
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 13 11:33:35 UTC 2012 - scorot@free.fr
|
||||
|
||||
- spec file cleanup and formating
|
||||
- remove mpich2 stuff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 8 19:22:00 UTC 2012 - scorot@free.fr
|
||||
|
||||
- specfile cleanup and update with scotch changes
|
||||
- link with ATLAS shared libs libsatlas.so
|
||||
- build parallel libs for openmpi and mvapich2
|
774
mumps.spec
Normal file
774
mumps.spec
Normal file
@ -0,0 +1,774 @@
|
||||
#
|
||||
# spec file for package mumps
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
|
||||
%define pname mumps
|
||||
%define ver 5.3.5
|
||||
%define so_ver 5_3_5
|
||||
%define openblas_vers 0.3.6
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
|
||||
%define PNAME %(echo %{pname} | tr [a-z] [A-Z])
|
||||
%define _ver %(echo %{ver} | tr . _)
|
||||
|
||||
%if "%flavor" == ""
|
||||
%define package_name %{pname}
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
|
||||
%if 0%{?sle_version} >= 150200
|
||||
%define DisOMPI1 ExclusiveArch: do_not_build
|
||||
%endif
|
||||
%if !0%{?is_opensuse} && 0%{?sle_version:1} && 0%{?sle_version} < 150200
|
||||
%define DisOMPI3 ExclusiveArch: do_not_build
|
||||
%endif
|
||||
%if 0%{?sle_version:1} && 0%{?sle_version} < 150300
|
||||
%define DisOMPI4 ExclusiveArch: do_not_build
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "serial"
|
||||
# Stub MPI library
|
||||
%define mumps_f77_mpilibs '-lmpiseq'
|
||||
%bcond_with hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "scotch-serial"
|
||||
# Stub MPI library
|
||||
%define mumps_f77_mpilibs '-lmpiseq'
|
||||
%bcond_with hpc
|
||||
%bcond_without scotch
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "openmpi4"
|
||||
%{?DisOMPI4}
|
||||
%define mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_with hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "openmpi5"
|
||||
%{?DisOMPI5}
|
||||
%define mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_with hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "mvapich2"
|
||||
%define mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%bcond_with hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "scotch-openmpi4"
|
||||
%{?DisOMPI4}
|
||||
%define mpi_family openmpi
|
||||
%define mpi_ver 4
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%bcond_with hpc
|
||||
%bcond_without scotch
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "scotch-openmpi5"
|
||||
%{?DisOMPI5}
|
||||
%define mpi_family openmpi
|
||||
%define mpi_ver 5
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%bcond_with hpc
|
||||
%bcond_without scotch
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "scotch-mvapich2"
|
||||
%define mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%bcond_with hpc
|
||||
%bcond_without scotch
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu-openmpi4-hpc"
|
||||
%{?DisOMPI4}
|
||||
%undefine c_f_ver
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu-openmpi5-hpc"
|
||||
%{?DisOMPI5}
|
||||
%undefine c_f_ver
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu-mvapich2-hpc"
|
||||
%undefine c_f_ver
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%undefine mpi_ver
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu-mpich-hpc"
|
||||
%undefine c_f_ver
|
||||
%global mpi_family mpich
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu7-openmpi4-hpc"
|
||||
%{?DisOMPI4}
|
||||
%define c_f_ver 7
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu7-openmpi5-hpc"
|
||||
%{?DisOMPI5}
|
||||
%define c_f_ver 7
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu7-mvapich2-hpc"
|
||||
%define c_f_ver 7
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%undefine mpi_ver
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu7-mpich-hpc"
|
||||
%define c_f_ver 7
|
||||
%global mpi_family mpich
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu8-openmpi4-hpc"
|
||||
%{?DisOMPI4}
|
||||
%define c_f_ver 8
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu8-openmpi5-hpc"
|
||||
%{?DisOMPI5}
|
||||
%define c_f_ver 8
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu8-mvapich2-hpc"
|
||||
%define c_f_ver 8
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%undefine mpi_ver
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu8-mpich-hpc"
|
||||
%define c_f_ver 8
|
||||
%global mpi_family mpich
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu9-openmpi4-hpc"
|
||||
%{?DisOMPI4}
|
||||
%define c_f_ver 9
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu9-openmpi5-hpc"
|
||||
%{?DisOMPI5}
|
||||
%define c_f_ver 9
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu9-mvapich2-hpc"
|
||||
%define c_f_ver 9
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%undefine mpi_ver
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu9-mpich-hpc"
|
||||
%define c_f_ver 9
|
||||
%global mpi_family mpich
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu10-openmpi4-hpc"
|
||||
%{?DisOMPI4}
|
||||
%define c_f_ver 10
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 4
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu10-openmpi5-hpc"
|
||||
%{?DisOMPI5}
|
||||
%define c_f_ver 10
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family openmpi
|
||||
%define mumps_f77_mpilibs -lmpi_mpifh -lmpi
|
||||
%define mpi_ver 5
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu10-mvapich2-hpc"
|
||||
%define c_f_ver 10
|
||||
# macro mpi is used by macros for master package
|
||||
%global mpi_family mvapich2
|
||||
%define mumps_f77_mpilibs -lfmpich -lmpich
|
||||
%undefine mpi_ver
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "gnu10-mpich-hpc"
|
||||
%define c_f_ver 10
|
||||
%global mpi_family mpich
|
||||
%bcond_without hpc
|
||||
%endif
|
||||
|
||||
%ifarch i586 s390 ppc armv7l
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
|
||||
%if !0%{?is_opensuse} && !0%{?with_hpc:1}
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
|
||||
%{?mpi_family:%{bcond_without mpi}}%{!?mpi_family:%{bcond_with mpi}}
|
||||
|
||||
%if %{with scotch}
|
||||
%if %{with mpi}
|
||||
%define scotch ptscotch
|
||||
%else
|
||||
%define scotch scotch
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{without hpc}
|
||||
%if %{without mpi}
|
||||
%define my_prefix %_prefix
|
||||
%define my_bindir %_bindir
|
||||
%define my_libdir %_libdir
|
||||
%define my_incdir %_includedir
|
||||
%define my_datadir %_datadir
|
||||
%else
|
||||
%define my_suffix -%{mpi_family}%{?mpi_ver}
|
||||
%define my_prefix %{_libdir}/mpi/gcc/%{mpi_family}%{?mpi_ver}
|
||||
%define my_bindir %{my_prefix}/bin
|
||||
%define my_libdir %{my_prefix}/%{_lib}/
|
||||
%define my_incdir %{my_prefix}/include/
|
||||
%define my_datadir %{my_prefix}/share/
|
||||
%endif
|
||||
%define package_name %{pname}%{?scotch:-%{scotch}}%{?my_suffix}
|
||||
%define libname lib%{pname}%{?scotch:-%{scotch}}%{?so_ver}%{?my_suffix}
|
||||
%else
|
||||
ExcludeArch: %ix86
|
||||
%{!?compiler_family:%global compiler_family gnu}
|
||||
%{?with_mpi:%{!?mpi_family:error "No MPI family specified!"}}
|
||||
|
||||
%{hpc_init -c %compiler_family %{?c_f_ver:-v %{c_f_ver}} %{?with_mpi:-m {%mpi_family}} %{?mpi_ver:-V %{mpi_ver}} %{?scotch:-e %{scotch}}}
|
||||
%define my_prefix %{hpc_prefix}
|
||||
%define my_bindir %{hpc_bindir}
|
||||
%define my_libdir %{hpc_libdir}
|
||||
%define my_incdir %{hpc_includedir}
|
||||
%define my_datadir %{hpc_datadir}
|
||||
%define package_name %{hpc_package_name %{?_ver}}
|
||||
%define libname lib%{package_name}
|
||||
%endif
|
||||
|
||||
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
|
||||
License: CECILL-C
|
||||
Group: Productivity/Scientific/Math
|
||||
Name: %{package_name}
|
||||
Version: %{ver}
|
||||
Release: 0
|
||||
URL: http://mumps.enseeiht.fr/
|
||||
Source0: http://mumps.enseeiht.fr/MUMPS_%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
||||
Source1: Makefile.inc
|
||||
%if %{without hpc}
|
||||
BuildRequires: gcc-fortran
|
||||
%{?with_scotch:BuildRequires: %{scotch}%{?with_mpi:-%{mpi_family}%{?mpi_ver}}-devel}
|
||||
%if %{with mpi}
|
||||
BuildRequires: %{mpi_family}%{?mpi_ver}-devel
|
||||
BuildRequires: libblacs2-%{mpi_family}%{?mpi_ver}-devel
|
||||
BuildRequires: scalapack-%{mpi_family}%{?mpi_ver}-devel
|
||||
%endif # mpi
|
||||
BuildRequires: blas-devel
|
||||
BuildRequires: lapack-devel
|
||||
%else # hpc
|
||||
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
|
||||
BuildRequires: %{mpi_family}%{?mpi_ver}-%{compiler_family}%{?c_f_ver}-hpc-macros-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libopenblas-%{compiler_family}%{?c_f_ver}-hpc >= %{openblas_vers}
|
||||
BuildRequires: libscalapack2-%{compiler_family}%{?c_f_ver}-%{mpi_family}%{?mpi_ver}-hpc-devel
|
||||
# Workaround for https://bugzilla.suse.com/show_bug.cgi?id=1234007
|
||||
BuildRequires: libscalapack2-%{compiler_family}%{?c_f_ver}-%{mpi_family}%{?mpi_ver}-hpc
|
||||
BuildRequires: suse-hpc
|
||||
%endif # hpc
|
||||
|
||||
%description
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
|
||||
Group: System/Libraries
|
||||
%if %{without hpc}
|
||||
%{?with_mpi:Recommends: %{libname}-compat = %{version}}
|
||||
# Explicitly include this library here:
|
||||
# the solver doesn't have enough information to pick the correct MPI flavor
|
||||
%{?with_mpi:Requires: libblacs2-%{mpi_family}%{?mpi_ver}}
|
||||
%else
|
||||
%{requires_eq libscalapack2-%{compiler_family}-%{mpi_family}%{?mpi_ver}-hpc}
|
||||
%hpc_requires
|
||||
Requires: lua-lmod >= 7.6.1
|
||||
%endif
|
||||
%if %{without hpc}
|
||||
Conflicts: lib%{pname}%{?scotch:-%{scotch}}5%{?my_suffix} >= 5.3.5
|
||||
%endif
|
||||
|
||||
%description -n %{libname}
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
%if %{!with mpi}
|
||||
This package contains the sequential library%{?scotch: with Scotch support enabled}.
|
||||
%else
|
||||
This package contains the parallel library with %{mpi_family}%{?mpi_ver} and %{?scotch: with Scotch support enabled}.
|
||||
%endif
|
||||
|
||||
%package -n %{libname}-compat
|
||||
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
|
||||
Group: System/Libraries
|
||||
Requires: lib%{pname}%{?scotch:-scotch}%{so_ver} = %{version}
|
||||
%if %{without hpc} && %{with mpi}
|
||||
# Install link targets for non-HPC MPI compat links from the MPI libdir - see below.
|
||||
BuildRequires: %{pname}%{?scotch:-scotch}-devel-static = %version
|
||||
BuildRequires: lib%{pname}%{?scotch:-scotch}%{so_ver} = %{version}
|
||||
%endif
|
||||
|
||||
%description -n %{libname}-compat
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
This package provides links to the serial libraries from the MPI library
|
||||
directory MUMPS built for %{mpi_family}%{?mpi_ver}.
|
||||
|
||||
%package doc
|
||||
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
This package provides Documentation for %{package_name}.
|
||||
|
||||
%if %{!with mpi}
|
||||
This package contains the sequential library%{?scotch: with Scotch support enabled}.
|
||||
%else
|
||||
This package contains the parallel library with %{mpi_family}%{?mpi_ver} and %{?scotch: with Scotch support enabled}.
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: Files needed for developing mumps based applications
|
||||
Group: Development/Libraries/Parallel
|
||||
Requires: %{libname} = %version
|
||||
%if %{without hpc}
|
||||
%if %{with mpi} || %{with scotch}
|
||||
Requires: mumps-devel = %{version}
|
||||
%endif
|
||||
%if %{with mpi}
|
||||
Requires: %{mpi_family}%{?mpi_ver}-devel
|
||||
Requires: scalapack-%{mpi_family}%{?mpi_ver}-devel
|
||||
%if %{with scotch}
|
||||
Requires: mumps-scotch-devel = %{version}
|
||||
Requires: ptscotch-%{mpi_family}%{?mpi_ver}-devel
|
||||
%endif
|
||||
%else # mpi
|
||||
Requires: blas-devel
|
||||
Requires: lapack-devel
|
||||
%{?with_scotch:Requires: scotch-devel}
|
||||
%endif # mpi
|
||||
Recommends: gcc-fortran
|
||||
%else # hpc
|
||||
%hpc_requires_devel
|
||||
%{requires_eq libscalapack2-%{compiler_family}-%{mpi_family}%{?mpi_ver}-hpc-devel}
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
Headers and development files for %{package_name}.
|
||||
|
||||
%package devel-static
|
||||
Summary: Files needed for developing mumps based applications
|
||||
Group: Development/Libraries/Parallel
|
||||
Requires: %{package_name}-devel
|
||||
|
||||
%description devel-static
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
Static libraries for %{package_name}.
|
||||
|
||||
%package devel-static-compat
|
||||
Summary: Files needed for developing mumps based applications
|
||||
Group: Development/Libraries/Parallel
|
||||
Requires: %{pname}%{?scotch:-scotch}-devel-static = %version
|
||||
|
||||
%description devel-static-compat
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
This package provides links to the static serial libraries from the MPI
|
||||
library directory MUMPS built for %{mpi_family}%{?mpi_ver}.
|
||||
|
||||
%package examples
|
||||
Summary: Test programs and examples for mumps
|
||||
Group: Documentation/Other
|
||||
Requires: %{libname} = %version
|
||||
%if %{without hpc}
|
||||
Provides: mumps(examples)(%{?mpi_family}) = %version
|
||||
Conflicts: otherproviders(mumps(examples)(%{?mpi_family}))
|
||||
%endif
|
||||
|
||||
%description examples
|
||||
MUMPS implements a direct solver for large sparse linear systems, with a
|
||||
particular focus on symmetric positive definite matrices. It can
|
||||
operate on distributed matrices e.g. over a cluster. It has Fortran and
|
||||
C interfaces, and can interface with ordering tools such as Scotch.
|
||||
|
||||
This packages contains some test and examples programs for mumps. In addition,
|
||||
matlab and scilab extensions are provided in /usr/share/doc/packages/mumps.
|
||||
|
||||
%if %{with hpc}
|
||||
%{hpc_master_package -l -L}
|
||||
%{hpc_master_package -L devel}
|
||||
%{hpc_master_package -L examples}
|
||||
%{hpc_master_package doc}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -n %{PNAME}_%{version}
|
||||
|
||||
%build
|
||||
|
||||
export SUSE_ASNEEDED=0
|
||||
|
||||
%if %{with hpc}
|
||||
%hpc_setup
|
||||
module load openblas scalapack
|
||||
%else
|
||||
%{?with_mpi: source %{my_bindir}/mpivars.sh}
|
||||
%endif
|
||||
|
||||
%define PLAT %{?scotch:_%{scotch}}%{!?scotch:%{!?with_mpi:_seq}}
|
||||
|
||||
%if %{without scotch}
|
||||
%define ORDERINGSF -Dpord
|
||||
%else # scotch
|
||||
%if %{with mpi}
|
||||
%define scotch ptscotch
|
||||
%define LSCOTCH -lptesmumps -lptscotch -lptscotcherr -lscotch
|
||||
%define ORDERINGSF -Dscotch -Dpord -Dptscotch
|
||||
%else # mpi
|
||||
%define scotch scotch
|
||||
%define LSCOTCH -lesmumps -lscotch -lscotcherr
|
||||
%define ISCOTCH -I%_includedir
|
||||
%define ORDERINGSF -Dscotch -Dpord
|
||||
%endif
|
||||
%endif # scotch
|
||||
|
||||
%if %{with hpc}
|
||||
%define LIBBLAS -lopenblas -lscalapack
|
||||
%define LAPAK -lscalapack
|
||||
%else # hpc
|
||||
%define LIBBLAS -lblas -llapack
|
||||
%define LAPACK -llapack
|
||||
%endif # hpc
|
||||
|
||||
%if %{with mpi}
|
||||
# Set LD_LIBRARY_PATH and PATH
|
||||
%define C_C mpicc
|
||||
%define F_C mpif77 -std=legacy
|
||||
%define F_L mpif77
|
||||
%define SCALAP -lscalapack %{!?with_hpc:-lblacs}
|
||||
%define MUMPS_LIBF77 %{!?with_hpc:-L%{my_libdir}} %{?mumps_f77_mpilibs}
|
||||
%define INCPAR %{!?with_hpc:-I%{my_incdir}}
|
||||
%define LIBPAR %{SCALAP} %{MUMPS_LIBF77}
|
||||
%define INCS \\\$(INCPAR)
|
||||
%define LIBS \\\$(LIBPAR)
|
||||
%else # mpi
|
||||
%define C_C gcc
|
||||
%define F_C gfortran -std=legacy
|
||||
%define F_L gfortran
|
||||
%define LIBSEQNEEDED libseqneeded
|
||||
%define MUMPS_LIBF77 -lmpiseq%{?PLAT}
|
||||
%define INCS \\\$(INCSEQ)
|
||||
%define LIBS \\\$(LIBSEQ)
|
||||
%endif # mpi
|
||||
|
||||
cp -f %{S:1} Makefile.inc
|
||||
echo \
|
||||
"%{?C_C:CC=%C_C}
|
||||
%{?F_C:FC=%F_C}
|
||||
%{?F_L:FL=%F_L}
|
||||
%{?SCALAP:SCALAP=%SCALAP}
|
||||
%{?INCPAR:INCPAR=%INCPAR}
|
||||
%{?LIBPAR:LIBPAR=%LIBPAR}
|
||||
%{?LIBBLAS:LIBBLAS=%LIBBLAS}
|
||||
%{?INCS:INCS=%INCS}
|
||||
%{?LIBS:LIBS=%LIBS}
|
||||
%{?LIBSEQNEEDED:LIBSEQNEEDED=%LIBSEQNEEDED}
|
||||
%{?LSCOTCH:LSCOTCH=%LSCOTCH}
|
||||
%{?ISCOTCH:ISCOTCH=%ISCOTCH}
|
||||
%{?ORDERINGSF:ORDERINGSF=%ORDERINGSF}
|
||||
%{?PLAT:PLAT=%PLAT}
|
||||
OPTC=$RPM_OPT_FLAGS -fPIC
|
||||
OPTF=\$(OPTC)" >> Makefile.inc
|
||||
|
||||
make %{?_smp_mflags} alllib
|
||||
|
||||
%{!?with_mpi:cp -P libseq/libmpiseq*.a lib/}
|
||||
|
||||
mkdir lib/tmp; cd lib/tmp;
|
||||
%define LORDERINGS -lpord%{?PLAT} %{?scotch:-l%{scotch}}
|
||||
%if %{without mpi}
|
||||
rm -f *.o; ar -x ../libmpiseq%{?PLAT}.a
|
||||
%F_C -shared *.o -Wl,-soname,libmpiseq%{?PLAT}.so.%{version} -o ../libmpiseq%{?PLAT}.so.%{version}
|
||||
ln -s libmpiseq%{?PLAT}.so.%{version} ../libmpiseq%{?PLAT}.so
|
||||
%endif
|
||||
rm -f *.o; ar -x ../libpord%{?PLAT}.a
|
||||
%C_C -shared *.o -Wl,-soname,libpord%{?PLAT}.so.%{version} -o ../libpord%{?PLAT}.so.%{version}
|
||||
ln -s libpord%{?PLAT}.so.%{version} ../libpord%{?PLAT}.so
|
||||
rm -f *.o; ar -x ../libmumps_common%{?PLAT}.a
|
||||
%F_C -shared *.o -Wl,-soname,libmumps_common$%{?PLAT}.so.%{version} -L.. %{LORDERINGS} \
|
||||
-lpthread %{MUMPS_LIBF77} -o ../libmumps_common%{?PLAT}.so.%{version}
|
||||
ln -s libmumps_common%{?PLAT}.so.%{version} ../libmumps_common%{?PLAT}.so
|
||||
for ARITH in c d s z ; do
|
||||
%F_C -shared -Wl,--whole-archive ../lib${ARITH}mumps%{?PLAT}.a -Wl,--no-whole-archive \
|
||||
-Wl,-soname,lib${ARITH}mumps%{?PLAT}.so.%{version} -L.. -lmumps_common%{?PLAT} \
|
||||
%{LORDERINGS} %{MUMPS_LIBF77} %{LIBBLAS} %{?SCALAP} -o ../lib${ARITH}mumps%{?PLAT}.so.%{version}
|
||||
ln -s lib${ARITH}mumps%{?PLAT}.so.%{version} ../lib${ARITH}mumps%{?PLAT}.so
|
||||
done
|
||||
cd -
|
||||
rm -rf lib/tmp/
|
||||
|
||||
# build test programs
|
||||
make -C examples clean
|
||||
echo \
|
||||
"LPORD=-L\$(LPORDDIR) -lpord\$(PLAT)
|
||||
LIBEXT=.so" >> Makefile.inc
|
||||
make -C examples \
|
||||
OPTL="-pie -L../lib" all
|
||||
# Make sure the user can build these later on
|
||||
echo "OPTL=-pie -L%{my_libdir}" >> Makefile.inc
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{my_bindir}
|
||||
mkdir -p %{buildroot}%{my_libdir}
|
||||
|
||||
# install libs
|
||||
cp -P lib/lib*.a %{buildroot}%{my_libdir}
|
||||
cp -P lib/lib*.so* %{buildroot}%{my_libdir}
|
||||
%if %{with hpc} || %{without mpi} && %{without scotch}
|
||||
mkdir -p %{buildroot}%{my_incdir}/mumps
|
||||
mkdir -p %{buildroot}%{my_incdir}/pord
|
||||
install -m 644 include/* %{buildroot}%{my_incdir}/mumps
|
||||
install -m 644 libseq/*.h %{buildroot}%{my_incdir}/mumps
|
||||
install -m 644 PORD/include/* %{buildroot}%{my_incdir}/pord
|
||||
%endif
|
||||
install -m 755 examples/*simpletest %{buildroot}%{my_bindir}
|
||||
install -m 755 examples/c_example %{buildroot}%{my_bindir}
|
||||
install -m 755 examples/*_save_restore %{buildroot}%{my_bindir}
|
||||
|
||||
%if %{with mpi}
|
||||
%if %{without hpc}
|
||||
# we make a symlink to the serial lib in the parallel lib prefix
|
||||
# because some scientific packages don't manage different directories
|
||||
# for the serial and parallel libs
|
||||
for lib in libcmumps libdmumps libsmumps libzmumps libmumps_common libmpiseq libpord ; do
|
||||
for type in .a .so .so.%{version}; do
|
||||
name=${lib}_%{!?scotch:seq}%{?scotch:scotch}${type}
|
||||
ln -s %{_libdir}/$name %{buildroot}%{my_libdir}/$name
|
||||
done
|
||||
done
|
||||
%endif # hpc
|
||||
%endif # mpi
|
||||
|
||||
%if %{with hpc}
|
||||
%hpc_write_modules_files
|
||||
#%%Module1.0#####################################################################
|
||||
|
||||
proc ModulesHelp { } {
|
||||
|
||||
puts stderr " "
|
||||
puts stderr "This module loads the mumps library built with the %{compiler_family} compiler"
|
||||
puts stderr "toolchain and the %{mpi_family}%{?mpi_ver} MPI stack."
|
||||
puts stderr " "
|
||||
|
||||
puts stderr "\nVersion %{version}\n"
|
||||
|
||||
}
|
||||
module-whatis "Name: %{pname} built with %{compiler_family} compiler%{?with_mpi: and %{mpi_family}%{?mpi_ver} MPI}"
|
||||
module-whatis "Version: %{version}"
|
||||
module-whatis "Category: runtime library"
|
||||
module-whatis "%{url}"
|
||||
|
||||
set version %{version}
|
||||
|
||||
depends-on scalapack
|
||||
|
||||
prepend-path PATH %{hpc_bindir}
|
||||
if {[file isdirectory %{hpc_includedir}]} {
|
||||
prepend-path INCLUDE %{hpc_includedir}
|
||||
}
|
||||
prepend-path LD_LIBRARY_PATH %{hpc_libdir}
|
||||
|
||||
setenv %{PNAME}_DIR %{hpc_prefix}
|
||||
setenv %{PNAME}_BIN %{hpc_bindir}
|
||||
if {[file isdirectory %{hpc_includedir}]} {
|
||||
setenv %{PNAME}_INC %{hpc_includedir}
|
||||
}
|
||||
setenv %{PNAME}_LIB %{hpc_libdir}
|
||||
|
||||
EOF
|
||||
%endif
|
||||
|
||||
# Don't want binaries in docdir
|
||||
rm -rf examples/*.o examples/*simpletest examples/*_save_restore examples/c_example examples/multiple_arithmetics_example
|
||||
|
||||
%if !%{with mpi}
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
%else
|
||||
|
||||
%post -n %{libname}
|
||||
/sbin/ldconfig -N %{my_libdir}
|
||||
|
||||
%postun -n %{libname}
|
||||
/sbin/ldconfig -N %{my_libdir}
|
||||
%{?with_hpc:%{hpc_module_delete_if_default}}
|
||||
%endif
|
||||
|
||||
%files -n %{libname}
|
||||
%if %{with hpc}
|
||||
%{hpc_dirs}
|
||||
%{hpc_modules_files}
|
||||
%endif
|
||||
%license LICENSE
|
||||
%doc ChangeLog README VERSION CREDITS
|
||||
%{my_libdir}/libcmumps%{?PLAT}.so.*
|
||||
%{my_libdir}/libdmumps%{?PLAT}.so.*
|
||||
%{my_libdir}/libsmumps%{?PLAT}.so.*
|
||||
%{my_libdir}/libzmumps%{?PLAT}.so.*
|
||||
%{my_libdir}/libmumps_common%{?PLAT}.so.*
|
||||
%{my_libdir}/libpord%{?PLAT}.so.*
|
||||
%if %{without mpi}
|
||||
%{_libdir}/libmpiseq%{?PLAT}.so.*
|
||||
%endif
|
||||
|
||||
%if %{with mpi} && %{without hpc}
|
||||
%files -n %{libname}-compat
|
||||
%if %{without scotch}
|
||||
%{my_libdir}/lib*_seq.so.*
|
||||
%else # scotch
|
||||
%{my_libdir}/lib*_scotch.so.*
|
||||
%endif # scotch
|
||||
%endif # mpi && !hpc
|
||||
|
||||
%files devel
|
||||
%if %{with hpc} || ( %{without scotch} && %{without mpi} )
|
||||
%{?with_hpc:%dir %{my_incdir}}
|
||||
%{my_incdir}/mumps
|
||||
%{my_incdir}/pord
|
||||
%endif
|
||||
%{my_libdir}/*.so
|
||||
|
||||
%files devel-static
|
||||
%{?with_mpi:%exclude %{my_libdir}/*%{!?scotch:_seq}%{?scotch:_scotch}.a}
|
||||
%{my_libdir}/*.a
|
||||
|
||||
%if %{with mpi} && %{without hpc}
|
||||
%files devel-static-compat
|
||||
%{my_libdir}/*%{!?scotch:_seq}%{?scotch:_scotch}.a
|
||||
%endif
|
||||
|
||||
%if %{with hpc} || ( %{without mpi} && %{without scotch} )
|
||||
%files doc
|
||||
%doc doc SCILAB MATLAB
|
||||
%endif
|
||||
|
||||
%files examples
|
||||
%doc Makefile.inc examples
|
||||
%{my_bindir}%{!?with_hpc:/*}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user