<?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 Cannot correctly link in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831549#M5657</link>
    <description>Hey guys. &lt;BR /&gt;&lt;BR /&gt;While trying to build HPCC according to instructions found at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-the-hpcc-benchmark/" target="_blank"&gt;http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-the-hpcc-benchmark/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I run into the error message:&lt;BR /&gt;ld: cannot find -lmkl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Have no clue what to do. Here are some relevant links from my makefile:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;LAdir = /share/apps/intel/mkl/10.2.2.025&lt;BR /&gt;LAinc = -I$(LAdir)/include&lt;BR /&gt;LAlib = -L$(LAdir)/lib/em64t -lmkl&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;HPL_LIBS = $(HPLlib) $(LAlib) $(MPlib) -lm&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;HPL_DEFS = $(F2CDEFS) $(HPL_OPTS) $(HPL_INCLUDES)&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;CC = mpicc&lt;BR /&gt;CCNOOPT = $(HPL_DEFS) -O0 -g&lt;BR /&gt;CCFLAGS = $(HPL_DEFS) -O3 -xP -ip -fno-alias&lt;BR /&gt;#&lt;BR /&gt;LINKER = mpicc&lt;BR /&gt;LINKFLAGS = $(CCFLAGS)&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Compilation breaks with the above error message. &lt;BR /&gt; &lt;BR /&gt;I also tried to use link advisor, as people recommend for example here:&lt;BR /&gt;&lt;A href="http://origin-software.intel.com/en-us/forums/showthread.php?t=71396" target="_blank"&gt;http://origin-software.intel.com/en-us/forums/showthread.php?t=71396&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For my system:&lt;BR /&gt;linux-x64&lt;BR /&gt;intel xeon CPU&lt;BR /&gt;openMPI compiled against intel compiler&lt;BR /&gt;&lt;BR /&gt;advisor generated the following set of options for me:&lt;BR /&gt;$(MKLPATH)/libmkl_solver_ilp64_sequential.a -Wl,--start-group $(MKLPATH)/libmkl_intel_ilp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)\\&lt;BR /&gt;/libmkl_core.a $(MKLPATH)/libmkl_blacs_openmpi_ilp64.a -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;This also didn't help and I got the same error upon compilation (cannot find -lmkl).&lt;BR /&gt;&lt;BR /&gt;I would appreciate any help with this issue. &lt;BR /&gt;Thanks.</description>
    <pubDate>Wed, 28 Apr 2010 00:11:48 GMT</pubDate>
    <dc:creator>ntiy</dc:creator>
    <dc:date>2010-04-28T00:11:48Z</dc:date>
    <item>
      <title>Cannot correctly link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831549#M5657</link>
      <description>Hey guys. &lt;BR /&gt;&lt;BR /&gt;While trying to build HPCC according to instructions found at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-the-hpcc-benchmark/" target="_blank"&gt;http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-the-hpcc-benchmark/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I run into the error message:&lt;BR /&gt;ld: cannot find -lmkl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Have no clue what to do. Here are some relevant links from my makefile:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;LAdir = /share/apps/intel/mkl/10.2.2.025&lt;BR /&gt;LAinc = -I$(LAdir)/include&lt;BR /&gt;LAlib = -L$(LAdir)/lib/em64t -lmkl&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;HPL_LIBS = $(HPLlib) $(LAlib) $(MPlib) -lm&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;HPL_DEFS = $(F2CDEFS) $(HPL_OPTS) $(HPL_INCLUDES)&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;CC = mpicc&lt;BR /&gt;CCNOOPT = $(HPL_DEFS) -O0 -g&lt;BR /&gt;CCFLAGS = $(HPL_DEFS) -O3 -xP -ip -fno-alias&lt;BR /&gt;#&lt;BR /&gt;LINKER = mpicc&lt;BR /&gt;LINKFLAGS = $(CCFLAGS)&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Compilation breaks with the above error message. &lt;BR /&gt; &lt;BR /&gt;I also tried to use link advisor, as people recommend for example here:&lt;BR /&gt;&lt;A href="http://origin-software.intel.com/en-us/forums/showthread.php?t=71396" target="_blank"&gt;http://origin-software.intel.com/en-us/forums/showthread.php?t=71396&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For my system:&lt;BR /&gt;linux-x64&lt;BR /&gt;intel xeon CPU&lt;BR /&gt;openMPI compiled against intel compiler&lt;BR /&gt;&lt;BR /&gt;advisor generated the following set of options for me:&lt;BR /&gt;$(MKLPATH)/libmkl_solver_ilp64_sequential.a -Wl,--start-group $(MKLPATH)/libmkl_intel_ilp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)\\&lt;BR /&gt;/libmkl_core.a $(MKLPATH)/libmkl_blacs_openmpi_ilp64.a -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;This also didn't help and I got the same error upon compilation (cannot find -lmkl).&lt;BR /&gt;&lt;BR /&gt;I would appreciate any help with this issue. &lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 28 Apr 2010 00:11:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831549#M5657</guid>
      <dc:creator>ntiy</dc:creator>
      <dc:date>2010-04-28T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Cannot correctly link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831550#M5658</link>
      <description>&lt;BR /&gt;Please try the steps from the KB article from &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-use-of-intel-mkl-in-hpcc-benchmark/" target="_blank"&gt;http://software.intel.com/en-us/articles/performance-tools-for-software-developers-use-of-intel-mkl-in-hpcc-benchmark/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;--Vipin</description>
      <pubDate>Wed, 28 Apr 2010 05:49:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831550#M5658</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2010-04-28T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Cannot correctly link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831551#M5659</link>
      <description>Hey. &lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;Thanks for reply. However I am still frustrated. When I try to buil MPI MKL FFT lib following your instructions I get library libfftw2x_cdft_DOUBLE.a not libfftw2x_cdft_DOUBLE.ilp64 as suggested. And therefore I am still not able to compile hpcc. Here goes:&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;# pwd&lt;BR /&gt;/share/apps/intel/mkl/10.2.2.025/interfaces/fftw2x_cdft&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# make libem64t mpi=intel3 PRECISION=MKL_DOUBLE interface=ilp64&lt;BR /&gt;make clean libfftw2x_cdft_DOUBLE.a _IA=em64t Ibin=bin64&lt;BR /&gt;make[1]: Entering directory `/share/apps/intel/mkl/10.2.2.025/interfaces/fftw2x_cdft'&lt;BR /&gt;rm -rf obj&lt;BR /&gt;rm -f ../../lib/em64t/libfftw2x_cdft_DOUBLE.a&lt;BR /&gt;mkdir -p obj&lt;BR /&gt;make -f makefile objects&lt;BR /&gt;make[2]: Entering directory `/share/apps/intel/mkl/10.2.2.025/interfaces/fftw2x_cdft'&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/1d_create_plan.c -o obj/1d_create_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/1d_destroy_plan.c -o obj/1d_destroy_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/1d_fftw.c -o obj/1d_fftw.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/1d_local_sizes.c -o obj/1d_local_sizes.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/nd_create_plan.c -o obj/nd_create_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/nd_destroy_plan.c -o obj/nd_destroy_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/nd_fftw.c -o obj/nd_fftw.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/nd_local_sizes.c -o obj/nd_local_sizes.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/rnd_create_plan.c -o obj/rnd_create_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/rnd_destroy_plan.c -o obj/rnd_destroy_plan.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/rnd_fftw.c -o obj/rnd_fftw.o&lt;BR /&gt;mpiicc -c -w -DMKL_DOUBLE -I../../include wrappers/rnd_local_sizes.c -o obj/rnd_local_sizes.o&lt;BR /&gt;make[2]: Leaving directory `/share/apps/intel/mkl/10.2.2.025/interfaces/fftw2x_cdft'&lt;BR /&gt;ar rs ../../lib/em64t/libfftw2x_cdft_DOUBLE.a obj/*.o&lt;BR /&gt;&lt;B&gt;ar: creating ../../lib/em64t/libfftw2x_cdft_DOUBLE.a&lt;/B&gt;&lt;BR /&gt;rm -rf obj&lt;BR /&gt;make[1]: Leaving directory `/share/apps/intel/mkl/10.2.2.025/interfaces/fftw2x_cdft'&lt;BR /&gt;----------------------&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 15:23:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-correctly-link/m-p/831551#M5659</guid>
      <dc:creator>ntiy</dc:creator>
      <dc:date>2010-04-28T15:23:32Z</dc:date>
    </item>
  </channel>
</rss>

