<?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 with MKL linking in an openmp app and -tcheck option for Intel Thread Checker use in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890202#M10364</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I asked this question in another forum and was adviced to ask here, so here is my question:&lt;/P&gt;
&lt;P&gt;I am trying to paralellize an existing Fortran code using OpenMP. In order to debug it, I want to use Intel Thread Checker 3.1 for Linux.&lt;/P&gt;
&lt;P&gt;I compile every source file using 'ifort -openmp -g -O0 -tcheck -o object.o source.f'&lt;/P&gt;
&lt;P&gt;I link using:&lt;/P&gt;
&lt;P&gt;ifort -openmp -g -O0 -tcheck -o pilot_simpl st-comun_s.o pilot_simpl.o etaxjadp.o tlibredp.o resol_dp.o locin1te.o cpccano.o cierredp.o cierredp.o extelldp.o fundlo.o fundex.o input_s.o output_s.o simetria_p.o sfbiesf.o sfpotbi.o esfuerzos.o rutinas_assemble.o QKJ.o intufi.o fundex_partes.o obtenerpi.o reaccionencabeza.o intuxi_bottom.o obtenerqeqv.o condicionamiento.o matricesMP.o instrato_s.o piers.o vector_datos.o rigidez.o obtener_colocacion.o ComputeTransformationMatrix.o RotateMatrix.o -L /opt/intel/Compiler/11.0/083/mkl/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -tcheck -lpthread&lt;/P&gt;
&lt;P&gt;The libraries are the ones that work for me when I do not use -tcheck, but when I use '-tcheck' I start to get undefined references such as the ones listed below.&lt;/P&gt;
&lt;P&gt;Can someone please help me with this?&lt;/P&gt;
&lt;P&gt;Notes: I link to mkl libraries such as: zgetrf_, dgemv_ and dgemm_'&lt;/P&gt;
&lt;P&gt;My version of ifort and mkl are 11.0.083.&lt;/P&gt;
&lt;P&gt;I have Intel Thread Checker 3.1 installed and running, and environment variables set.&lt;/P&gt;
/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_ok_to_fork'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_ordered'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_barrier'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_critical'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_serialized_parallel'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_critical'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_push_num_threads'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_serialized_parallel'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_flush'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_global_thread_num'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_ordered'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_fork_call'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_atomic_fixed8_add'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_fini'&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Feb 2010 18:28:49 GMT</pubDate>
    <dc:creator>Luis_Alberto</dc:creator>
    <dc:date>2010-02-17T18:28:49Z</dc:date>
    <item>
      <title>problem with MKL linking in an openmp app and -tcheck option for Intel Thread Checker use</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890202#M10364</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I asked this question in another forum and was adviced to ask here, so here is my question:&lt;/P&gt;
&lt;P&gt;I am trying to paralellize an existing Fortran code using OpenMP. In order to debug it, I want to use Intel Thread Checker 3.1 for Linux.&lt;/P&gt;
&lt;P&gt;I compile every source file using 'ifort -openmp -g -O0 -tcheck -o object.o source.f'&lt;/P&gt;
&lt;P&gt;I link using:&lt;/P&gt;
&lt;P&gt;ifort -openmp -g -O0 -tcheck -o pilot_simpl st-comun_s.o pilot_simpl.o etaxjadp.o tlibredp.o resol_dp.o locin1te.o cpccano.o cierredp.o cierredp.o extelldp.o fundlo.o fundex.o input_s.o output_s.o simetria_p.o sfbiesf.o sfpotbi.o esfuerzos.o rutinas_assemble.o QKJ.o intufi.o fundex_partes.o obtenerpi.o reaccionencabeza.o intuxi_bottom.o obtenerqeqv.o condicionamiento.o matricesMP.o instrato_s.o piers.o vector_datos.o rigidez.o obtener_colocacion.o ComputeTransformationMatrix.o RotateMatrix.o -L /opt/intel/Compiler/11.0/083/mkl/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -tcheck -lpthread&lt;/P&gt;
&lt;P&gt;The libraries are the ones that work for me when I do not use -tcheck, but when I use '-tcheck' I start to get undefined references such as the ones listed below.&lt;/P&gt;
&lt;P&gt;Can someone please help me with this?&lt;/P&gt;
&lt;P&gt;Notes: I link to mkl libraries such as: zgetrf_, dgemv_ and dgemm_'&lt;/P&gt;
&lt;P&gt;My version of ifort and mkl are 11.0.083.&lt;/P&gt;
&lt;P&gt;I have Intel Thread Checker 3.1 installed and running, and environment variables set.&lt;/P&gt;
/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_ok_to_fork'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_ordered'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_barrier'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_critical'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_serialized_parallel'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_critical'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_push_num_threads'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_serialized_parallel'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_flush'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_8'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_4'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_global_thread_num'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_end_ordered'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_fork_call'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_atomic_fixed8_add'&lt;BR /&gt;/opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_fini'&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Feb 2010 18:28:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890202#M10364</guid>
      <dc:creator>Luis_Alberto</dc:creator>
      <dc:date>2010-02-17T18:28:49Z</dc:date>
    </item>
    <item>
      <title>problem with MKL linking in an openmp app and -tcheck option fo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890203#M10365</link>
      <description>&lt;P&gt;Luis,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;all these undefined references are related with threading library. So,please try to add &lt;B&gt;-liomp5 -lpthread&lt;/B&gt; into the linking line and let us know how it will works.&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2010 05:02:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890203#M10365</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-02-18T05:02:50Z</dc:date>
    </item>
    <item>
      <title>problem with MKL linking in an openmp app and -tcheck option fo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890204#M10366</link>
      <description>&lt;P&gt;Thank you Gennady!&lt;/P&gt;
&lt;P&gt;It links now! One question: Should I use the option -liomp5 to kink even if a don't want to use -tcheck and I am not debbuging?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2010 11:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890204#M10366</guid>
      <dc:creator>Luis_Alberto</dc:creator>
      <dc:date>2010-02-19T11:16:56Z</dc:date>
    </item>
    <item>
      <title>problem with MKL linking in an openmp app and -tcheck option fo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890205#M10367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If your application uses MKL threading then these libraries are required.&lt;/P&gt;
&lt;P&gt;Just visit &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;for details&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2010 12:26:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-MKL-linking-in-an-openmp-app-and-tcheck-option-for/m-p/890205#M10367</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-19T12:26:08Z</dc:date>
    </item>
  </channel>
</rss>

