<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem linking C Sparse BLAS routines with gcc in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886662#M10074</link>
    <description>I am trying to use the function mkl_dcscmm in my C++ code. I am using the gnu compiler and linker. When the linking stage begins I use this call:&lt;BR /&gt;&lt;BR /&gt;g++ -ansi -pedantic -Wall -O3 netlist.o domain.o createMats.o main.o -o circuit libs/SuperLU_3.0/libsuperlu_3.0.a -Llibs/imkl/mkl/lib/em64t libs/imkl/mkl/lib/em64t/libmkl_intel_lp64.a libs/imkl/mkl/lib/em64t/libmkl_intel_thread.a libs/imkl/mkl/lib/em64t/libmkl_core.a libs/imkl/mkl/lib/em64t/libguide.a -lpthread -lm&lt;BR /&gt;&lt;BR /&gt;and the output is full of errors that look like this:&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x7b0): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmgen'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x828): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_dcsrmmgen'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x8d4): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmtr'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x96b): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_dcsrmmtr'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0xd09): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmskew'&lt;BR /&gt;&lt;BR /&gt;I tried grepping through the mkl lib directory for things like mkl_spblas_lp64_cspblas_dcsrmmtr and I found that they are referenced in these files:&lt;BR /&gt;Binary file libmkl_core.a matches&lt;BR /&gt;Binary file libmkl_gnu_thread.a matches&lt;BR /&gt;Binary file libmkl_intel_thread.a matches&lt;BR /&gt;Binary file libmkl_sequential.a matches&lt;BR /&gt;&lt;BR /&gt;Binary file libmkl_def.so matches&lt;BR /&gt;Binary file libmkl_gnu_thread.so matches&lt;BR /&gt;Binary file libmkl_intel_thread.so matches&lt;BR /&gt;Binary file libmkl_mc.so matches&lt;BR /&gt;Binary file libmkl_p4n.so matches&lt;BR /&gt;Binary file libmkl_sequential.so matches&lt;BR /&gt;&lt;BR /&gt;None of these actually look like they contain the definitions I'm looking for and when I include the ones not already included I get other linking errors. The example in the mkl/examples/spblas is only for fortran and I have included all the files that it uses. Any suggestions?&lt;BR /&gt;</description>
    <pubDate>Fri, 16 May 2008 16:48:33 GMT</pubDate>
    <dc:creator>mbhealy</dc:creator>
    <dc:date>2008-05-16T16:48:33Z</dc:date>
    <item>
      <title>Problem linking C Sparse BLAS routines with gcc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886662#M10074</link>
      <description>I am trying to use the function mkl_dcscmm in my C++ code. I am using the gnu compiler and linker. When the linking stage begins I use this call:&lt;BR /&gt;&lt;BR /&gt;g++ -ansi -pedantic -Wall -O3 netlist.o domain.o createMats.o main.o -o circuit libs/SuperLU_3.0/libsuperlu_3.0.a -Llibs/imkl/mkl/lib/em64t libs/imkl/mkl/lib/em64t/libmkl_intel_lp64.a libs/imkl/mkl/lib/em64t/libmkl_intel_thread.a libs/imkl/mkl/lib/em64t/libmkl_core.a libs/imkl/mkl/lib/em64t/libguide.a -lpthread -lm&lt;BR /&gt;&lt;BR /&gt;and the output is full of errors that look like this:&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x7b0): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmgen'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x828): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_dcsrmmgen'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x8d4): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmtr'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0x96b): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_dcsrmmtr'&lt;BR /&gt;libs/imkl/mkl/lib/em64t/libmkl_core.a(_def_mkl_dcscmm_lp64.o)(.text+0xd09): In function `mkl_spblas_lp64_def_mkl_dcscmm':&lt;BR /&gt;: undefined reference to `mkl_spblas_lp64_cspblas_dcsrmmskew'&lt;BR /&gt;&lt;BR /&gt;I tried grepping through the mkl lib directory for things like mkl_spblas_lp64_cspblas_dcsrmmtr and I found that they are referenced in these files:&lt;BR /&gt;Binary file libmkl_core.a matches&lt;BR /&gt;Binary file libmkl_gnu_thread.a matches&lt;BR /&gt;Binary file libmkl_intel_thread.a matches&lt;BR /&gt;Binary file libmkl_sequential.a matches&lt;BR /&gt;&lt;BR /&gt;Binary file libmkl_def.so matches&lt;BR /&gt;Binary file libmkl_gnu_thread.so matches&lt;BR /&gt;Binary file libmkl_intel_thread.so matches&lt;BR /&gt;Binary file libmkl_mc.so matches&lt;BR /&gt;Binary file libmkl_p4n.so matches&lt;BR /&gt;Binary file libmkl_sequential.so matches&lt;BR /&gt;&lt;BR /&gt;None of these actually look like they contain the definitions I'm looking for and when I include the ones not already included I get other linking errors. The example in the mkl/examples/spblas is only for fortran and I have included all the files that it uses. Any suggestions?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 May 2008 16:48:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886662#M10074</guid>
      <dc:creator>mbhealy</dc:creator>
      <dc:date>2008-05-16T16:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem linking C Sparse BLAS routines with gcc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886663#M10075</link>
      <description>As there are circular references in the MKL libraries, for static linking, you must either repeat the list of libraries 3 times (more, if in wrong order), or set the -Wl,--begin-group .... -Wl, --end-group (or equivalent) flags, as shown in the MKL docs. If those options go wrong, it could be a problem with out of date binutils or gcc.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 May 2008 17:43:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886663#M10075</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-05-16T17:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem linking C Sparse BLAS routines with gcc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886664#M10076</link>
      <description>Thanks! That worked. I don't know why I didn't see that before. I had used those lines before for a different example I was working with. &lt;BR /&gt;&lt;BR /&gt;For those interested, here is the linking line that worked for me:&lt;BR /&gt;g++ -ansi -pedantic -Wall -O3 netlist.o domain.o createMats.o main.o -o circuit libs/SuperLU_3.0/libsuperlu_3.0.a -Llibs/imkl/mkl/lib/em64t libs/imkl/mkl/lib/em64t/libmkl_intel_lp64.a -Wl,--start-group libs/imkl/mkl/lib/em64t/libmkl_intel_thread.a libs/imkl/mkl/lib/em64t/libmkl_core.a -Wl,--end-group libs/imkl/mkl/lib/em64t/libguide.a -lpthread -lm&lt;BR /&gt;</description>
      <pubDate>Fri, 16 May 2008 17:59:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-linking-C-Sparse-BLAS-routines-with-gcc/m-p/886664#M10076</guid>
      <dc:creator>mbhealy</dc:creator>
      <dc:date>2008-05-16T17:59:01Z</dc:date>
    </item>
  </channel>
</rss>

