--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=-lopenblas
> ===============================================================================
>              Configuring PETSc to compile on your system                      
>  
> ===============================================================================
> ===============================================================================
>                                                                               
>           It appears you do not have valgrind installed on your system.       
>                                                                               
>                We HIGHLY recommend you install it from www.valgrind.org       
>                                                                               
>                     Or install valgrind-devel or equivalent using your 
> package manager.                                                              
>                                 Then rerun ./configure                        
>                                                                               
>                                
> ===============================================================================
>                                                                               
>     Compilers:                                                                
>                                                                               
>          
>   C Compiler:         mpicc    -Wall -Wwrite-strings -Wno-strict-aliasing 
> -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g3 
>   C++ Compiler:       mpicxx  -Wall -Wwrite-strings -Wno-strict-aliasing 
> -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g      
>   Fortran Compiler:   mpif90   -Wall -ffree-line-length-0 
> -Wno-unused-dummy-argument -g  
> Linkers:
>   Shared linker:   mpicc  -shared    -Wall -Wwrite-strings 
> -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector 
> -fvisibility=hidden -g3
>   Dynamic linker:   mpicc  -shared    -Wall -Wwrite-strings 
> -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector 
> -fvisibility=hidden -g3
> make:
> BLAS/LAPACK: -lopenblas
> MPI:
> cmake:
> X:
>   Library:  -lX11
> c2html:
>   Arch:     
> pthread:
>   Library:  -lpthread
> PETSc:
>   PETSC_ARCH: arch-linux2-c-debug
>   PETSC_DIR: /home/balay/petsc
>   Scalar type: real
>   Precision: double
>   Clanguage: C
>   Integer size: 32
>   shared libraries: enabled
>   Memory alignment: 16
> xxx=========================================================================xxx
>  Configure stage complete. Now build PETSc libraries with (gnumake build):
>    make PETSC_DIR=/home/balay/petsc PETSC_ARCH=arch-linux2-c-debug all
> xxx=========================================================================xxx
> balay@asterix /home/balay/petsc (maint=)                                      
>                                                                               
>      
> $ 
> 
> 
> On Fri, 31 Aug 2018, Antonio wrote:
> 
>> 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 -lfui -lfsu
>> -lsunmath -lm -lstdc++ -ldl -L/usr/lib64/openmpi/lib -lmpi_usempif08
>> -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm
>> -L/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib64/openmpi/lib -lgfortran
>> -lm -lgcc_s -lquadmath -lpthread -lstdc++ -ldl
>> Possible ERROR while running linker: exit code 256
>> stderr:
>> /usr/bin/ld: cannot find -lsunperf
>> /usr/bin/ld: cannot find -lfui
>> /usr/bin/ld: cannot find -lfsu
>> /usr/bin/ld: cannot find -lsunmath
>> collect2: error: ld returned 1 exit status
>>                       Popping language C
>>                 Unknown name mangling in BLAS/LAPACK
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL/9.0
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL/8.1.1
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL/8.1
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL/8.0.1
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL/8.0
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL72
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL70
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL61
>>               MKL Path not found.. skipping: /cygdrive/c/Program
>> Files/Intel/MKL
>> **** Configure header /tmp/petsc-FYncGY/confdefs.h ****
>>
>> On 31/08/2018 19:41, Smith, Barry F. wrote:
>>>
>>>    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 [email protected]
>>>
>>>     Barry
>>>
>>
>>

-- 
---
Antonio Trande
Fedora Project
mailto 'sagitter at fedoraproject dot org'
GPG key: 0x5E212EE1D35568BE
GPG key server: https://keys.fedoraproject.org/

Reply via email to