On Sat, Jun 30, 2018 at 1:00 PM Mark Adams <mfad...@lbl.gov> wrote: > Stuck again. I use: > > > '--with-blaslapack-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64', > > '--with-mkl_pardiso-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64', > > It does not find the MKL library because, apparently, it is not > libmkl_intel.a (log file attached). > > If I add: > > '--with-blaslapack-lib=libmkl_intel_thread.a', > > I get: > > Specify either "--with-blaslapack-dir" or "--with-blaslapack-lib > --with-blaslapack-include". But not both! >
Get rid of the dir option, and give the full path to the library. Matt > Mark > > On Sat, Jun 30, 2018 at 1:25 PM Mark Adams <mfad...@lbl.gov> wrote: > >> Found a syntax error from Intel web page and --with-blaslapack-lib to >> specify the library. Press on. >> >> On Sat, Jun 30, 2018 at 11:50 AM Mark Adams <mfad...@lbl.gov> wrote: >> >>> I am configuring with MKL: >>> >>> >>> >>> '--with-blas-lapack-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin', >>> >>> '--with-mkl_pardiso-dir=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin', >>> >>> >>> and get this error (appended). It is looking for libmkl_intel.a but this >>> is what there is: >>> >>> 08:46 cori07 maint *= ~/petsc_install/petsc/src/snes/examples/tutorials$ >>> ll >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_inte* >>> -rw-r--r-- 1 root root 22133402 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_ilp64.a >>> -rwxr-xr-x 1 root root 9783841 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_ilp64.so >>> -rw-r--r-- 1 root root 23254666 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.a >>> -rwxr-xr-x 1 root root 10567885 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_lp64.so >>> -rw-r--r-- 1 root root 49087274 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_thread.a >>> -rwxr-xr-x 1 root root 37230319 Oct 6 2017 >>> /opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin/libmkl_intel_thread.so >>> >>> I would guess I want to add and LDFLAGS="lmkl_intel_thread" maybe? I >>> want to use OpenMP. >>> >>> Thanks, >>> Mark >>> >>> >>> >>> Pushing language C >>> Popping language C >>> Executing: cc -o /tmp/petsc-ZL05ng/config.libraries/conftest -g -O0 >>> -hcpu=mic-knl -qopenmp-simd -fopenmp >>> /tmp/petsc-ZL05ng/config.libraries/conftest.o >>> -Wl,-rpath,/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin >>> -L/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin >>> -lmkl_intel -lmkl_core -lmkl_gnu_thread -lgomp -ldl -lpthread -lstdc++ -ldl >>> Possible ERROR while running linker: exit code 256 >>> stderr: >>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: >>> cannot find -lmkl_intel >>> Popping language C >>> Unknown name mangling in BLAS/LAPACK >>> **** Configure header /tmp/petsc-ZL05ng/confdefs.h **** >>> #if !defined(INCLUDED_UNKNOWN) >>> >>> -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>