<div dir="ltr"><font color="#874efe" style="font-family:arial,sans-serif;font-size:13px">Hello,</font><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe"><br></font></div><div><font color="#874efe" style="font-family:arial,sans-serif;font-size:13px">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,<br>
</font><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><font>--------------------------------------------------------------------------------------------------------------------------------------------</font></div>
<div><div style="font-family:Menlo;font-size:13px;margin:0px"><font color="#ff6a00">blockCG_1.c:365: warning: implicit declaration of function 'numroc_'</font></div><div style="font-family:Menlo;font-size:13px;margin:0px">
<font color="#ff6a00">blockCG_1.c:368: warning: implicit declaration of function 'descinit_'</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font>---------------------------------------------------------------------------------------------------------------------------------------------</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font><br></font></div><div style="font-family:arial,sans-serif"><font color="#874efe">My makefile is as below</font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font>---------------------------------------------------------------------------------------------------------------------------------------------</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">PETSC_DIR</span>=/export/software/petsc-3.3</font></div><div style="margin:0px;font-family:Menlo;min-height:21px">
<font><br></font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">INTEL_ROOT</span>=/export/software/intel/composerxe-2011.4.191/</font></div><div style="margin:0px;font-family:Menlo">
<font><span style="color:rgb(199,156,36)">MKL_LIB_PATH_64</span>=/export/software/intel/mkl/lib/intel64/</font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">INTEL_LIB_PATH_64</span>=/export/software/intel/composerxe-2011.4.191/compiler/lib/intel64/</font></div>
<div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">MKL_INC_PATH</span>=/export/software/intel/mkl/include/</font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">SCALAPACK_LIB_PATH</span>=/export/software/scalapack-2.0.2/lib/</font></div>
<div style="margin:0px;font-family:Menlo;min-height:21px"><font><br></font></div><div style="margin:0px;font-family:Menlo;color:rgb(199,156,36)"><font>CLINKER<span style="color:rgb(0,0,0)">=gcc</span></font></div><div style="margin:0px;font-family:Menlo;min-height:21px">
<font><br></font></div><div style="margin:0px;font-family:Menlo;color:rgb(199,156,36)"><font>PKG_INC<span style="color:rgb(0,0,0)"> = -I${</span>MKL_INC_PATH<span style="color:rgb(0,0,0)">}</span></font></div><div style="margin:0px;font-family:Menlo">
<font><span style="color:rgb(199,156,36)">PKG_LIB</span> = -Wl,-rpath,${<span style="color:rgb(199,156,36)">MKL_LIB_PATH_64</span>} -L${<span style="color:rgb(199,156,36)">MKL_LIB_PATH_64</span>} -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_lp64 -lmkl_\</font></div>
<div style="margin:0px;font-family:Menlo"><font>scalapack_ilp64 -lmkl_blacs_openmpi_lp64 -Wl,-rpath,${<span style="color:rgb(199,156,36)">INTEL_LIB_PATH_64</span>} -L${<span style="color:rgb(199,156,36)">INTEL_LIB_PATH_64</span>} -liomp5 -L${SCALAPACK_LIB_PATH} -l</font><span style="font-size:small">scalapack -llapack -blas</span></div>
<div style="margin:0px;font-family:Menlo;min-height:21px"><font><br></font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">CFLAGS</span>           =</font></div><div style="margin:0px;font-family:Menlo">
<font><span style="color:rgb(199,156,36)">FFLAGS</span>           =</font></div><div style="margin:0px;font-family:Menlo;color:rgb(199,156,36)"><font>CPPFLAGS<span style="color:rgb(0,0,0)">         = ${</span>PKG_INC<span style="color:rgb(0,0,0)">}</span></font></div>
<div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(199,156,36)">FPPFLAGS</span>         =</font></div><div style="margin:0px;font-family:Menlo;color:rgb(199,156,36)"><font>CLEANFILES<span style="color:rgb(0,0,0)">       =</span></font></div>
<div style="margin:0px;font-family:Menlo;min-height:21px"><font><br></font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(208,60,255)">include</span> ${<span style="color:rgb(199,156,36)">PETSC_DIR</span>}/conf/variables</font></div>
<div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(208,60,255)">include</span> ${<span style="color:rgb(199,156,36)">PETSC_DIR</span>}/conf/rules</font></div><div style="margin:0px;font-family:Menlo;min-height:21px">
<font><br></font></div><div style="margin:0px;font-family:Menlo"><font><span style="color:rgb(94,52,255)">blockCG_1</span>: blockCG_1.o chkopts</font></div><div style="margin:0px;font-family:Menlo"><font>        <span style="color:rgb(53,163,39)">-</span>${<span style="color:rgb(199,156,36)">CLINKER</span>} -o blockCG_1 blockCG_1.o ${<span style="color:rgb(199,156,36)">PKG_LIB</span>} ${<span style="color:rgb(199,156,36)">PETSC_LIB</span>}</font></div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><font><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font>--------------------------------------------------------------------------------------------------------------------------------------------</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe">Can you please guide me that how can I find this functions from my program?</font></div>
<div><font color="#874efe"><font face="arial, sans-serif"><br></font></font></div><div><font color="#874efe"><font face="arial, sans-serif">I mean how can I include scalapack in my program and compile it?</font></font></div>
<div><font color="#874efe"><font face="arial, sans-serif"><br></font></font></div><div><font color="#874efe"><font face="arial, sans-serif">And is there any header file I have to include in the program?</font></font></div>
<div><font color="#874efe"><font face="arial, sans-serif"><br></font></font></div><div><font color="#874efe"><font face="arial, sans-serif">I have scalapack installed separately.</font></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#874efe"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe">Thanks for your time,</font></div></div></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#874efe"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe">Priyank</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe"><br></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#874efe"><a href="mailto:ppate024@odu.edu">ppate024@odu.edu</a></font></div>
</div>