<?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 HPCC compilation issues in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829930#M5466</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Please use this tool to find out the link (and compile) line for your configuration:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;.&lt;BR /&gt;Here are a couple of hints you may find useful.&lt;BR /&gt;Decide which compiler and OpenMP library you are going to use (this will take care of the undefined references).&lt;BR /&gt;Decide which MPI you are going to use (this will define the correct blacs library to use). In case it is Intel MPI, then make sure you use the mpiicc wrapper instead of mpicc.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir</description>
    <pubDate>Sat, 05 May 2012 05:37:30 GMT</pubDate>
    <dc:creator>Vladimir_Petrov__Int</dc:creator>
    <dc:date>2012-05-05T05:37:30Z</dc:date>
    <item>
      <title>HPCC compilation issues</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829928#M5464</link>
      <description>So I built hpcc with atlas and now I'm trying to use MKL but I'm getting loads of errors when compiling it.&lt;BR /&gt;&lt;BR /&gt;I followed this guide &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; and this is my Make file:&lt;BR /&gt;&lt;BR /&gt;TOPdir = ../../..&lt;BR /&gt;INCdir = $(TOPdir)/include&lt;BR /&gt;BINdir = $(TOPdir)/bin/$(ARCH)&lt;BR /&gt;LIBdir = $(TOPdir)/lib/$(ARCH)&lt;BR /&gt;#&lt;BR /&gt;HPLlib = $(LIBdir)/libhpl.a&lt;BR /&gt;#&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;# - Message Passing library (MPI) --------------------------------------&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;# MPinc tells the C compiler where to find the Message Passing library&lt;BR /&gt;# header files, MPlib is defined to be the name of the library to be&lt;BR /&gt;# used. The variable MPdir is only used for defining MPinc and MPlib.&lt;BR /&gt;#&lt;BR /&gt;MPdir = /usr/bin/mpi&lt;BR /&gt;#MPinc = -I$(MPdir)/include&lt;BR /&gt;MPlib = /usr/lib64/mpich2/lib/libmpich.a&lt;BR /&gt;#&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;# - Linear Algebra library (BLAS or VSIPL) -----------------------------&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;LAdir = /opt/intel/mkl/lib/intel64&lt;BR /&gt;LAinc = /opt/intel/mkl/include&lt;BR /&gt;LAlib = -Wl,--start-group $(LAdir)/libfftw2x_cdft_DOUBLE.a $(LAdir)/libfftw2xc_gnu.a $(LAdir)/libmkl_intel_lp64.a $(LAdir)/libmkl_intel_thread.a $(LAdir)/libmkl_core.a $(LAdir)/libmkl_blacs_intelmpi_lp64.a $(LAdir)/libmkl_cdft_core.a -Wl,--end-group -lpthread -lm&lt;BR /&gt;&lt;BR /&gt;F2CDEFS =&lt;BR /&gt;#&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;# - HPL includes / libraries / specifics -------------------------------&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) -I$(LAinc) $(MPinc)&lt;BR /&gt;HPL_LIBS = $(HPLlib) $(LAlib) $(MPlib)&lt;BR /&gt;#&lt;BR /&gt;# - Compile time options -----------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;HPL_OPTS = -DHPL_CALL_CBLAS&lt;BR /&gt;#&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;# - Compilers / linkers - Optimization flags ---------------------------&lt;BR /&gt;# ----------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;CC = /usr/bin/mpicc&lt;BR /&gt;CCNOOPT = $(HPL_DEFS)&lt;BR /&gt;#CCFLAGS = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops&lt;BR /&gt;CCFLAGS = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops -DUSING_FFTW -DMKL_INT=long -DLONG_IS_64BITS -I/opt/intel/mkl/include/fftw&lt;BR /&gt;#&lt;BR /&gt;# On some platforms, it is necessary to use the Fortran linker to find&lt;BR /&gt;# the Fortran internals used in the BLAS library.&lt;BR /&gt;#&lt;BR /&gt;LINKER = /usr/bin/mpicc&lt;BR /&gt;LINKFLAGS = $(CCFLAGS)&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Error here:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/mkl/lib/intel64/libmkl_intel_thread.a(bless_node_omp.o): In function `ttl_parallel_team':&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0xae): undefined reference to `__kmpc_global_thread_num'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0xc0): undefined reference to `__kmpc_ok_to_fork'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0xdb): undefined reference to `__kmpc_push_num_threads'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0x108): undefined reference to `__kmpc_fork_call'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0x120): undefined reference to `__kmpc_serialized_parallel'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0x156): undefined reference to `__kmpc_end_serialized_parallel'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0x1e0): undefined reference to `omp_get_thread_num'&lt;BR /&gt;../../../../dft/kernel/0ref/bless_node_omp.c:(.text+0x1e8): undefined reference to `omp_get_num_threads'&lt;BR /&gt;/opt/intel/mkl/lib/intel64/libmkl_intel_thread.a(dtrsm_drv.o): In function `mkl_blas_dtrsm':&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x296): undefined reference to `__kmpc_global_thread_num'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x2a8): undefined reference to `__kmpc_ok_to_fork'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x2c7): undefined reference to `__kmpc_push_num_threads'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x368): undefined reference to `__kmpc_fork_call'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x386): undefined reference to `__kmpc_serialized_parallel'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x437): undefined reference to `__kmpc_end_serialized_parallel'&lt;BR /&gt;../../../../blas/thread/32e/level3/dtrsm.c:(.text+0x624): undefined reference to `omp_get_num_threads'&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;</description>
      <pubDate>Fri, 04 May 2012 20:18:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829928#M5464</guid>
      <dc:creator>dgza</dc:creator>
      <dc:date>2012-05-04T20:18:52Z</dc:date>
    </item>
    <item>
      <title>HPCC compilation issues</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829929#M5465</link>
      <description>You have these&lt;STRONG&gt;linkererrors&lt;/STRONG&gt; because in your &lt;STRONG&gt;Make&lt;/STRONG&gt; file &lt;STRONG&gt;Intel&lt;/STRONG&gt;runtime libraries, like '&lt;STRONG&gt;libiomp5m*.a&lt;/STRONG&gt;' etc, are not included.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;BR /&gt;</description>
      <pubDate>Sat, 05 May 2012 05:14:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829929#M5465</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-05-05T05:14:31Z</dc:date>
    </item>
    <item>
      <title>HPCC compilation issues</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829930#M5466</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Please use this tool to find out the link (and compile) line for your configuration:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;.&lt;BR /&gt;Here are a couple of hints you may find useful.&lt;BR /&gt;Decide which compiler and OpenMP library you are going to use (this will take care of the undefined references).&lt;BR /&gt;Decide which MPI you are going to use (this will define the correct blacs library to use). In case it is Intel MPI, then make sure you use the mpiicc wrapper instead of mpicc.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir</description>
      <pubDate>Sat, 05 May 2012 05:37:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829930#M5466</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2012-05-05T05:37:30Z</dc:date>
    </item>
    <item>
      <title>HPCC compilation issues</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829931#M5467</link>
      <description>If you are using Intel compilers, via a correctly configured mpi wrapper, the option -openmp in the link step will take care of the OpenMP functions; otherwise you will need to observe the recommendations of the link advisor in that respect, as well as in choice of MKL libraries.</description>
      <pubDate>Sat, 05 May 2012 17:06:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829931#M5467</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-05-05T17:06:03Z</dc:date>
    </item>
    <item>
      <title>HPCC compilation issues</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829932#M5468</link>
      <description>That tool did the trick, thanks.&lt;BR /&gt;&lt;BR /&gt;Annoyingly, I had seen it a few weeks ago, but complitely forgot about it.</description>
      <pubDate>Sat, 05 May 2012 18:20:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/HPCC-compilation-issues/m-p/829932#M5468</guid>
      <dc:creator>dgza</dc:creator>
      <dc:date>2012-05-05T18:20:55Z</dc:date>
    </item>
  </channel>
</rss>

