[petsc-users] Error using scalapack with PETSC

Priyank Patel ppate024 at odu.edu
Thu Aug 7 11:08:11 CDT 2014


Hello,

I am working on a C program that includes PETSC and MKL, it is working file
with mkl but when I tried to include scalapack function in the same program
it is showing me error like below,

--------------------------------------------------------------------------------------------------------------------------------------------
blockCG_1.c:365: warning: implicit declaration of function 'numroc_'
blockCG_1.c:368: warning: implicit declaration of function 'descinit_'
---------------------------------------------------------------------------------------------------------------------------------------------

My makefile is as below

---------------------------------------------------------------------------------------------------------------------------------------------
PETSC_DIR=/export/software/petsc-3.3

INTEL_ROOT=/export/software/intel/composerxe-2011.4.191/
MKL_LIB_PATH_64=/export/software/intel/mkl/lib/intel64/
INTEL_LIB_PATH_64
=/export/software/intel/composerxe-2011.4.191/compiler/lib/intel64/
MKL_INC_PATH=/export/software/intel/mkl/include/
SCALAPACK_LIB_PATH=/export/software/scalapack-2.0.2/lib/

CLINKER=gcc

PKG_INC = -I${MKL_INC_PATH}
PKG_LIB = -Wl,-rpath,${MKL_LIB_PATH_64} -L${MKL_LIB_PATH_64}
-lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_lp64 -lmkl_\
scalapack_ilp64 -lmkl_blacs_openmpi_lp64 -Wl,-rpath,${INTEL_LIB_PATH_64}
-L${INTEL_LIB_PATH_64} -liomp5 -L${SCALAPACK_LIB_PATH} -lscalapack -llapack
-blas

CFLAGS           =
FFLAGS           =
CPPFLAGS         = ${PKG_INC}
FPPFLAGS         =
CLEANFILES       =

include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

blockCG_1: blockCG_1.o chkopts
        -${CLINKER} -o blockCG_1 blockCG_1.o ${PKG_LIB} ${PETSC_LIB}

--------------------------------------------------------------------------------------------------------------------------------------------

Can you please guide me that how can I find this functions from my program?

I mean how can I include scalapack in my program and compile it?

And is there any header file I have to include in the program?

I have scalapack installed separately.

Thanks for your time,


Priyank

ppate024 at odu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140807/e771bb52/attachment.html>


More information about the petsc-users mailing list