<?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 Wo, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099646#M68187</link>
    <description>&lt;P&gt;Wo,&lt;/P&gt;

&lt;P&gt;I've sent you a private message here on IDZ regarding code sharing.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 09:35:05 GMT</pubDate>
    <dc:creator>Jan_Z_Intel</dc:creator>
    <dc:date>2017-02-23T09:35:05Z</dc:date>
    <item>
      <title>Compile KNC coprocessor code with KNL host processor</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099637#M68178</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;Sorry advance if such similar post is an old topic!&lt;/P&gt;

&lt;P&gt;I am trying to compile some existing KNC coprocessor code with KNL host processor using Parallel Studio 2017 but encountered the errors below.&lt;/P&gt;

&lt;P&gt;I trie&lt;SPAN style="font-size: 1em;"&gt;d commenting out the "#pragma" code from the source to avoid calling the coprocessor but no helps.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Any good documentation for how to convert KNC coprocessor to KNL host processor?&lt;/P&gt;

&lt;P&gt;Better yet, any idea how to fix the below problem?&lt;/P&gt;

&lt;P&gt;Thanks much in advance for any pointers!&lt;/P&gt;

&lt;P&gt;--Wo&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;mpiicpc -xMIC-AVX512 -O3 -Wall -funroll-all-loops -I /big/Intel/bin/include &amp;nbsp;-I ../../zlib-1.2.8 -DCOMPRESSED_INPUT &amp;nbsp;-DMPI_PARALLEL -o objs/AlignCoreTiling.mpi.cpp.o -c src/AlignCoreTiling.cpp&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;mpiicpc -xMIC-AVX512 -O3 -Wall -funroll-all-loops -I /big/Intel/bin/include &amp;nbsp;-I ../../zlib-1.2.8 -DCOMPRESSED_INPUT &amp;nbsp;-o mpi-swaphi-ls &amp;nbsp;objs/AlignCore.mpi.cpp.o &amp;nbsp;objs/Align.mpi.cpp.o &amp;nbsp;objs/main.mpi.cpp.o &amp;nbsp;objs/SeqFileParser.mpi.cpp.o &amp;nbsp;objs/Sequence.mpi.cpp.o &amp;nbsp;objs/Utils.mpi.cpp.o &amp;nbsp;objs/AlignCoreNaive.mpi.cpp.o &amp;nbsp;objs/AlignCoreTiling.mpi.cpp.o -lz -lm&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;ld: warning: libcoi_device.so.0, needed by /big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIPerfGetCycleFrequency@COI_1.0'&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIBufferAddRef@COI_1.0'&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIPipelineStartExecutingRunFunctions@COI_1.0'&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIEngineGetIndex@COI_1.0'&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIBufferReleaseRef@COI_1.0'&lt;BR /&gt;
	/big/Intel/bin/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/libioffload_target.so.5: undefined reference to `COIProcessWaitForShutdown@COI_1.0'&lt;BR /&gt;
	make: *** [all] Error 1&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 22:15:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099637#M68178</guid>
      <dc:creator>Wo_C_</dc:creator>
      <dc:date>2017-02-20T22:15:21Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099638#M68179</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;You may have missed one of the following constructs:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;__attribute__ (( target (mic))) int i;&lt;/PRE&gt;

&lt;P&gt;or:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#pragma offload_attribute(push, target(mic))
...
#pragma offload_attribute(pop)
&lt;/PRE&gt;

&lt;P&gt;Another thing to check is having offload.h included in one of the source files.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Let me also propose considering more gradual approach to modernizing your application, presented during HPC Developer Conference:&amp;nbsp;http://www.intel.com/content/www/us/en/events/hpcdevcon/systems-track.html#discover&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:15:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099638#M68179</guid>
      <dc:creator>Jan_Z_Intel</dc:creator>
      <dc:date>2017-02-21T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Do you have the KNL MPSS</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099639#M68180</link>
      <description>&lt;P&gt;Do you have the KNL MPSS installed on your system.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:16:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099639#M68180</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2017-02-21T21:16:58Z</dc:date>
    </item>
    <item>
      <title>Dear All,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099640#M68181</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;Thanks for those replied!&lt;/P&gt;

&lt;P&gt;I think using "-qoffload=none" solved all my compilation problem.&lt;/P&gt;

&lt;P&gt;But, when executing the program, I have&amp;nbsp;“failed to offload on device 0” runtime error message. I think my program stopped at this point.&lt;/P&gt;

&lt;P&gt;Any ideas how to fix this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;--Wo&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:30:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099640#M68181</guid>
      <dc:creator>Wo_C_</dc:creator>
      <dc:date>2017-02-21T21:30:21Z</dc:date>
    </item>
    <item>
      <title>If you have a KNC offload</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099641#M68182</link>
      <description>&lt;P&gt;If you have a KNC offload program and want to recompile for KNL, the switch is -qoffload-arch=mic-avx512.&lt;/P&gt;

&lt;P&gt;Any KNC-specific code within #ifdef __MIC__ will need to be examined for suitability for KNL, and the __MIC__ macro itself should be replaced with __TARGET_ARCH_MIC.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:50:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099641#M68182</guid>
      <dc:creator>Rajiv_D_Intel</dc:creator>
      <dc:date>2017-02-21T21:50:32Z</dc:date>
    </item>
    <item>
      <title>This message: “failed to</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099642#M68183</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;This message: “failed to offload on device 0" indicates that the program still tries to offload. &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I would like to make sure that I understand your goal: do you want to modify the program that currently uses offloading to KNC so that it will run on a KNL machine without any offloading? Is it correct?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Another question: does your original KNC program use compiler offloading "#pragma offload target(mic)" or OpenMP target directives?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 16:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099642#M68183</guid>
      <dc:creator>Jan_Z_Intel</dc:creator>
      <dc:date>2017-02-22T16:52:00Z</dc:date>
    </item>
    <item>
      <title>Dear Jan,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099643#M68184</link>
      <description>&lt;P&gt;Dear Jan,&lt;/P&gt;

&lt;P&gt;Yes I&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;want to modify the program that currently uses offloading to KNC so that it will run on a KNL machine without any offloading. Yes, the current KNC code does use #pragma constructs and openmp.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Thank smuch for your help!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;--Wo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 18:21:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099643#M68184</guid>
      <dc:creator>Wo_C_</dc:creator>
      <dc:date>2017-02-22T18:21:57Z</dc:date>
    </item>
    <item>
      <title>I understand, thanks for the</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099644#M68185</link>
      <description>&lt;P&gt;I understand, thanks for the confirmation.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I get the same error message while linking any simple program with one of the offload pragma constructs (either #pragma offload or #pragma offload_attribute) and -xMIC-AVX512 parameter. Please double check if you haven't missed any of those while commenting out pragmas. If it doesn't help, is it possible for you to share the source code?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:01:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099644#M68185</guid>
      <dc:creator>Jan_Z_Intel</dc:creator>
      <dc:date>2017-02-22T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Jan,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099645#M68186</link>
      <description>&lt;P&gt;Jan,&lt;/P&gt;

&lt;P&gt;Good that you could repeat the problem! Yes, I do have the&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What I also the&amp;nbsp;-xMIC-AVX512 -O3 -qopenmp -Wall -qoffload=none -qoffload-arch=mic-avx512 and also comment out the "#pragma offload" in the program but same error message.&lt;/P&gt;

&lt;P&gt;I just sent you the source code via Google Doc since the attachment won't go through.&lt;/P&gt;

&lt;P&gt;Thanks much for your help!&lt;/P&gt;

&lt;P&gt;--Wo&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:28:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099645#M68186</guid>
      <dc:creator>Wo_C_</dc:creator>
      <dc:date>2017-02-22T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Wo,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099646#M68187</link>
      <description>&lt;P&gt;Wo,&lt;/P&gt;

&lt;P&gt;I've sent you a private message here on IDZ regarding code sharing.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 09:35:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099646#M68187</guid>
      <dc:creator>Jan_Z_Intel</dc:creator>
      <dc:date>2017-02-23T09:35:05Z</dc:date>
    </item>
    <item>
      <title>Jan,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099647#M68188</link>
      <description>&lt;P&gt;Jan,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am facing with the same problem in the same code he is using. I have tried converting the offload code completely to run in Host KNL processor without any co-processor(Native mode). I have removed the offload constructs and __MIC__ routines. I am still facing issues elsewhere.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The code is using Intel Intrinsic vector registers to implement vectorization in the algorithm. When I remove __MIC__ and offload constructs and compile the code, I am getting error messages provided in the link below.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-many-integrated-core/topic/748504"&gt;https://software.intel.com/en-us/forums/intel-many-integrated-core/topic/748504&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 22:02:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-KNC-coprocessor-code-with-KNL-host-processor/m-p/1099647#M68188</guid>
      <dc:creator>Parameswaran__Athi_N</dc:creator>
      <dc:date>2017-11-15T22:02:28Z</dc:date>
    </item>
  </channel>
</rss>

