Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Zhang, Hong
The MKL version you are trying to use does not match the environment setting on Theta. hongzh@thetalogin6:~/Projects/petsc (master)$ module list Currently Loaded Modulefiles: 1) modules/3.2.10.6 10) dmapp/7.1.1-6.0.4.0_46.2__gb8abda2.ari19)

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Kong, Fande
On Thu, May 3, 2018 at 11:50 AM, Zhang, Hong wrote: > Alternatively you can use --with-blaslapack-dir=/opt/ > intel/compilers_and_libraries/linux/mkl/lib/intel64 to let petsc pick the > right libs for you. > This used to work, but does not work any more. Thanks, Fande, >

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Zhang, Hong
Alternatively you can use --with-blaslapack-dir=/opt/intel/compilers_and_libraries/linux/mkl/lib/intel64 to let petsc pick the right libs for you. Hong (Mr.) On May 3, 2018, at 11:32 AM, Fande Kong > wrote: --with-blaslapack-lib=-mkl -L' +

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Fande Kong
--with-blaslapack-lib=-mkl -L' + os.environ['MKLROOT'] + '/lib/intel64 works. Fande, On Thu, May 3, 2018 at 10:09 AM, Satish Balay wrote: > Ok you are not 'building blaslapack' - but using mkl [as per > configure.log]. > > I'll have to check the issue. It might be something

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Satish Balay
Ok you are not 'building blaslapack' - but using mkl [as per configure.log]. I'll have to check the issue. It might be something to do with using mkl as a static library.. Hong might have some suggestions wrt theta builds. Satish On Thu, 3 May 2018, Satish Balay wrote: > Perhaps you should

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-03 Thread Satish Balay
Perhaps you should use MKL on theta? Again check config/examples/arch-cray-xc40-knl-opt.py Satish On Thu, 3 May 2018, Kong, Fande wrote: > Thanks, > > I get the PETSc complied, but theta does not like the shared lib, I think. > > I am switching back to a static lib. I ever successfully

Re: [petsc-users] Could not determine how to create a shared library!

2018-05-01 Thread Satish Balay
This is theta.. Try: using --LDFLAGS=-dynamic option [as listed in config/examples/arch-cray-xc40-knl-opt.py] Satish On Tue, 1 May 2018, Kong, Fande wrote: > Hi All, > > I can build a static petsc library on a supercomputer, but could not do the > same thing with "