<?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 openmp code with mkl and -tcheck / Intel Thread in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890403#M3759</link>
    <description>&lt;P&gt;Yes, it works without -tcheck. Does it mean that ITT doesn't work with programs that need MKL Libraries?&lt;/P&gt;
&lt;P&gt;Could you please explain further what do you mean by 'mixing the procedures for static or shared MKL libraries.'?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2010 18:24:35 GMT</pubDate>
    <dc:creator>Luis_Alberto</dc:creator>
    <dc:date>2010-02-17T18:24:35Z</dc:date>
    <item>
      <title>problem linking openmp code with mkl and -tcheck / Intel Thread Checker</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890401#M3757</link>
      <description>&lt;P&gt;Hello,&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;
&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;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2010 13:26:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890401#M3757</guid>
      <dc:creator>Luis_Alberto</dc:creator>
      <dc:date>2010-02-17T13:26:13Z</dc:date>
    </item>
    <item>
      <title>problem linking openmp code with mkl and -tcheck / Intel Thread</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890402#M3758</link>
      <description>&lt;P&gt;I'm not certain what you want to do with your MKL linking; you are mixing the procedures for static or shared MKL libraries. But, maybe it could work in the absence of -tcheck. In my experience, MKL libraries don't work with -tcheck, so I substitute public BLAS source code (not threaded within BLAS).&lt;/P&gt;
&lt;P&gt;For expert opinions on use of MKL with -tcheck, the MKL forum might be more useful. I suspect the writers of thread checker didn't intend to support the combination of MKL and -tcheck, instead recommending you stick to cases small enough to use dynamic thread check instrumentation.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2010 17:50:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890402#M3758</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-02-17T17:50:42Z</dc:date>
    </item>
    <item>
      <title>problem linking openmp code with mkl and -tcheck / Intel Thread</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890403#M3759</link>
      <description>&lt;P&gt;Yes, it works without -tcheck. Does it mean that ITT doesn't work with programs that need MKL Libraries?&lt;/P&gt;
&lt;P&gt;Could you please explain further what do you mean by 'mixing the procedures for static or shared MKL libraries.'?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2010 18:24:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890403#M3759</guid>
      <dc:creator>Luis_Alberto</dc:creator>
      <dc:date>2010-02-17T18:24:35Z</dc:date>
    </item>
    <item>
      <title>problem linking openmp code with mkl and -tcheck / Intel Thread</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890404#M3760</link>
      <description>Normally, you would use the --start-group .... -end-group linker directives only with static libraries. I guess it does no harm to use them with the shared libraries.</description>
      <pubDate>Wed, 17 Feb 2010 18:49:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890404#M3760</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-02-17T18:49:20Z</dc:date>
    </item>
    <item>
      <title>problem linking openmp code with mkl and -tcheck / Intel Thread</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890405#M3761</link>
      <description>&lt;P&gt;I hope it does not harm. I wrote them because it says so in the mkl-link-line advisor site from intel itself!:&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;Thank you very much for your response. I posted my question again in the MKL forum as you advised.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2010 19:14:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/problem-linking-openmp-code-with-mkl-and-tcheck-Intel-Thread/m-p/890405#M3761</guid>
      <dc:creator>Luis_Alberto</dc:creator>
      <dc:date>2010-02-17T19:14:19Z</dc:date>
    </item>
  </channel>
</rss>

