[petsc-dev] Compiling PETsc against openblas on Linux

2018-08-31 Thread Antonio Trande
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} \ --wit

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-08-31 Thread Smith, Barry F.
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=

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-08-31 Thread Satish Balay
You would use: --with-blas-lapack-lib=%{_libdir}/libopenblas.so The options --with-openblas-include --with-openblas-lib etc are a bit misleading [due to the way some of the blas packages ae organized] Satish On Fri, 31 Aug 2018, Antonio Trande wrote: > Hello everyone. > > How to configure c

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-08-31 Thread Antonio
It's failing for missing (not required) links: Executing: mpicc -o /tmp/petsc-FYncGY/config.libraries/conftest -Wl,-z,relro -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g3 /tmp/petsc-FYncGY/config.libraries/conftest.o -lsunperf -

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-08-31 Thread Satish Balay
It should work. configure.log will have details.. Satish -- balay@asterix /home/balay/petsc (maint=) $ ./configure --with-blaslapack-lib=-lopenblas === Configuring PETSc to compile on your system

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-09-02 Thread Antonio
--with-blas-lapack-lib=-lopenblas --known-64-bit-blas-indices=0 is working. Thanks. On 31/08/2018 20:11, Satish Balay wrote: > It should work. configure.log will have details.. > > Satish > > -- > > balay@asterix /home/balay/petsc (maint=) > $ ./configure --with-blaslapack-lib=-lopen

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-09-02 Thread Matthew Knepley
On Sun, Sep 2, 2018 at 11:11 AM Antonio wrote: > --with-blas-lapack-lib=-lopenblas --known-64-bit-blas-indices=0 > I am curious why you are giving the 64-bit option. This should be figured automatically unless you cannot executable programs on the platform on which you are configuring. What goe

Re: [petsc-dev] Compiling PETsc against openblas on Linux

2018-09-02 Thread Antonio
>What goes wrong? Nothing. It's just a manner to monitor that option together BLAS/BLAS64 library. On 02/09/2018 17:45, Matthew Knepley wrote: > On Sun, Sep 2, 2018 at 11:11 AM Antonio > wrote: > >  --with-blas-lapack-lib=-lopenblas --known-64-bit-blas-indices=