[petsc-dev] Compiling PETsc against openblas on Linux
Smith, Barry F.
bsmith at mcs.anl.gov
Fri Aug 31 12:41:26 CDT 2018
Ah, sorry for the confusion. We do support --download-openblas where PETSc will download and install and OpenBlas for you but if you have it already installed then you need to treat it just as a BLASLAPACK library so use
> --with-blaslapack-include=%{_includedir} \
> --with-blaslapack-lib=%{_libdir}/libopenblas.so \
> --known-64-bit-blas-indices=0 \
If this fails then mail configure.log to petsc-maint at mcs.anl.gov
Barry
> On Aug 31, 2018, at 12:16 PM, Antonio Trande <anto.trande at gmail.com> wrote:
>
> Hello everyone.
>
> How to configure correctly PETsc compilation against OpenBLAS?
>
> 'openblas' libraries are
>
> /usr/include/openblas/*
> /usr/lib(64)/libopenblas.so
> /usr/lib(64)/libopenblas.a
> /usr/lib(64)/libopenblas64.so
>
> If i use
>
> ..
> --with-openblas=1 \
> --with-openblas-include=%{_includedir} \
> --with-openblas-lib=%{_libdir}/libopenblas.so \
> --known-64-bit-blas-indices=0 \
> ..
>
> Configure fails with
>
> TEST configureLibrary from
> config.packages.openblas(/home/sagitter/rpmbuild/BUILD/petsc-3.9.3/petsc-3.9.3/config/BuildSystem/config/packages/openblas.py:25)
> TESTING: configureLibrary from
> config.packages.openblas(config/BuildSystem/config/packages/openblas.py:25)
> ==================================================================================
> Checking for a functional openblas
> Not checking for library in User specified OPENBLAS
> libraries: [] because no functions given to check for
> ================================================================================
> TEST check from
> config.libraries(/home/sagitter/rpmbuild/BUILD/petsc-3.9.3/petsc-3.9.3/config/BuildSystem/config/libraries.py:155)
> TESTING: check from
> config.libraries(config/BuildSystem/config/libraries.py:155)
> Checks that the library "libName" contains "funcs", and if it does
> defines HAVE_LIB"libName"
> - libDir may be a list of directories
> - libName may be a list of library names
> No functions to check for in library [] []
> Checking for headers User specified OPENBLAS libraries: []
> **** Configure header /tmp/petsc-y1LlML/confdefs.h ****
>
> --
> ---
> Antonio Trande
> Fedora Project
> mailto 'sagitter at fedoraproject dot org'
> GPG key: 0x5E212EE1D35568BE
> GPG key server: https://keys.fedoraproject.org/
More information about the petsc-dev
mailing list