PETSc configure with Intel-compiler static linking
Takuya Sekikawa
sekikawa at msi.co.jp
Thu Jul 9 02:50:24 CDT 2009
Hello petsc users,
I need to know how to configure PETSc with Intel-compiler (icc/icpc) on
static linking.
shared linking is just fine,
but I need to build PETSc with static-linking. so I tried several description.
[1]
$ ./config/configure.py --with-cc=icc --with-cxx=icpc --with-fc=0
--with-shared=0 --with-blas-lapack-dir=${MKL_DIR}
environment variable MKL_DIR is set to intel MKL library directory.
this one is fine, (also compiling and running is ok)
but is spite of "--with-shared=0" flag, executable still link with .so
(libmkl_lapack.so, etc)
so I tried another one:
[2]
$ ./config/configure.py --with-cc=icc --with-cxx=icpc --with-fc=0
--with-shared=0 --with-blas-lapack-lib=${MKL_DIR}/libmkl_lapack.a
this time configure.py failed:
*********************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------
You set a value for --with-blas-lapack-lib=<lib>, but ['/opt/intel/mkl/10.0.010/lib/em64t/libmkl_lapack.a'] cannot be used
*********************************************************************************
Could someone give me good advice? (or examples are greatly appriciated)
Thanks in advance
Takuya
More information about the petsc-users
mailing list