#3 Build against FlexiBLAS
Merged 3 years ago by decathorpe. Opened 3 years ago by iucar.
rpms/ iucar/psi4 master  into  master

file modified
+14 -3
@@ -1,7 +1,15 @@ 

+ %if 0%{?fedora} >= 33

+ %global blaslib flexiblas

+ %global blasvar %{nil}

+ %else

+ %global blaslib openblas

+ %global blasvar o

+ %endif

+ 

  Name:           psi4

  Epoch:          1

  Version:        1.3.2

- Release:        6%{?dist}

+ Release:        7%{?dist}

  Summary:        An ab initio quantum chemistry package

  License:        LGPLv3 and MIT

  URL:            http://www.psicode.org/
@@ -25,7 +33,7 @@ 

  BuildRequires:  hdf5-devel

  BuildRequires:  zlib-devel

  

- BuildRequires:  openblas-devel

+ BuildRequires:  %{blaslib}-devel

  BuildRequires:  CheMPS2-devel

  BuildRequires:  libint-devel >= 1.1.5-3

  BuildRequires:  libxc-devel
@@ -102,7 +110,7 @@ 

  

  %cmake \

         -DENABLE_OPENMP=ON -DENABLE_MPI=OFF -DENABLE_XHOST=OFF \

-        -DBLAS_LIBRARIES='-lopenblaso' -DLAPACK_LIBRARIES='-lopenblaso' -DENABLE_AUTO_LAPACK=OFF \

+        -DBLAS_LIBRARIES='-l%{blaslib}%{blasvar}' -DLAPACK_LIBRARIES='-l%{blaslib}%{blasvar}' -DENABLE_AUTO_LAPACK=OFF \

         -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \

         -DCUSTOM_C_FLAGS='%{optflags} -std=c11 -DNDEBUG' -DCUSTOM_CXX_FLAGS='%{optflags} -std=c++11 -DNDEBUG' \

         -DCUSTOM_Fortran_FLAGS='-I%{_libdir}/gfortran/modules %{optflags} -DNDEBUG' \
@@ -147,6 +155,9 @@ 

  %{_libdir}/psi4/

  

  %changelog

+ * Sun Aug 16 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1:1.3.2-7

+ - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager

+ 

  * Wed Aug 05 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 1:1.3.2-6

  - Adapt to new CMake scripts.

  

This PR is part of a F33 System-Wide Change Proposal that aims to set FlexiBLAS
as the default BLAS/LAPACK manager for all consumers of these APIs. For further
information, see https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager

You'll find a successful scratch build for this PR in
https://koji.fedoraproject.org/koji/taskinfo?taskID=49366746

I kindly ask you to merge this PR and build the package in rawhide and F33. Please,
report any issues you may found in https://bugzilla.redhat.com/show_bug.cgi?id=1860504

Processing as provenpackager according to this request for help:
https://pagure.io/fesco/issue/2443#comment-669930

Diff looks good, simple-koji-ci passed. I'll merge and build.

Pull-Request has been merged by decathorpe

3 years ago