<?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 I did not find any similar in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106546#M70614</link>
    <description>&lt;P&gt;I did not find any similar previous reports of this specific error so I need to inquire w/Development. They may need a reproducing test case. Would you be able to compile with &lt;STRONG&gt;-P&lt;/STRONG&gt; and then attach the resulting .i file to a reply in the meantime?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2016 09:17:21 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2016-08-20T09:17:21Z</dc:date>
    <item>
      <title>Issue compiling Embree with KNC support using icpc</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106545#M70613</link>
      <description>&lt;P&gt;I'm attempting to build a version of Intel's Embree with MIC support. I encounter this error:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;[ 52%] Building CXX object builddir/ospray/intel64/embree-v2.7.1/kernels/xeonphi/CMakeFiles/embree_xeonphi.dir/__/common/scene_subdiv_mesh.cpp.o
cd /home/development/OSPRay-0.10.1/build/builddir/ospray/intel64/embree-v2.7.1/kernels/xeonphi &amp;amp;&amp;amp; /opt/intel/compilers_and_libraries_2016.3.210/linux/bin/intel64/icpc   -DDONT_WARN_INCLUDE_EMBREE_INTERNALS=1 -DOSPRAY_TASKING_TBB -DTASKING_LOCKSTEP -D__TARGET_XEON_PHI__ -Dembree_xeonphi_EXPORTS -I/home/development/OSPRay-0.10.1/build -I/opt/intel/compilers_and_libraries_2016.3.210/linux/tbb/include -I/home/development/OSPRay-0.10.1 -I/home/development/OSPRay-0.10.1/ospray/include -I/home/development/OSPRay-0.10.1/build/builddir/ospray/intel64/embree-v2.7.1 -I/home/development/OSPRay-0.10.1/ospray/embree-v2.7.1/include -I/home/development/OSPRay-0.10.1/ospray/embree-v2.7.1/kernels/xeonphi -I/home/development/OSPRay-0.10.1/build/builddir/ospray/intel64/embree-v2.7.1/kernels/xeonphi  -mmic -restrict -Wall -wd177 -fasm-blocks -fPIC -std=c++11 -O3 -g -DNDEBUG -fp-model fast -fimf-precision=low -fasm-blocks -no-inline-max-total-size -inline-factor=200 -fPIC  -fma  -restrict -no-prec-div -no-prec-sqrt  -mGLOB_default_function_attrs="use_vec_for_imul=on;use_fast_math=on;gather_scatter_loop_jknzd=on;gather_scatter_loop_unroll=2;use_gather_scatter_hint=on;c_sch_nop_insertion=on;c_avoid_movz_and_movs=off;c_avoid_integer_ciscization=on;avoid_long_vector_ints=on;avoid_loads_with_extend=on;smart_mem_conflicts=on"  -mP2OPT_hlo_prefetch=F  -fPIC   -o CMakeFiles/embree_xeonphi.dir/__/common/scene_subdiv_mesh.cpp.o -c /home/development/OSPRay-0.10.1/ospray/embree-v2.7.1/kernels/common/scene_subdiv_mesh.cpp
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(186): error #137: expression must be a modifiable lvalue
        __a = _GLIBCXX_MOVE(__b);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(187): error #137: expression must be a modifiable lvalue
        __b = _GLIBCXX_MOVE(__tmp);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(186): error #137: expression must be a modifiable lvalue
        __a = _GLIBCXX_MOVE(__b);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(187): error #137: expression must be a modifiable lvalue
        __b = _GLIBCXX_MOVE(__tmp);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(186): error #137: expression must be a modifiable lvalue
        __a = _GLIBCXX_MOVE(__b);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(187): error #137: expression must be a modifiable lvalue
        __b = _GLIBCXX_MOVE(__tmp);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(186): error #137: expression must be a modifiable lvalue
        __a = _GLIBCXX_MOVE(__b);
        ^
/usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/move.h(187): error #137: expression must be a modifiable lvalue
        __b = _GLIBCXX_MOVE(__tmp);
        ^
compilation aborted for /home/development/OSPRay-0.10.1/ospray/embree-v2.7.1/kernels/common/scene_subdiv_mesh.cpp (code 2)
make[2]: *** [builddir/ospray/intel64/embree-v2.7.1/kernels/xeonphi/CMakeFiles/embree_xeonphi.dir/__/common/scene_subdiv_mesh.cpp.o] Error 2
make[2]: Leaving directory `/home/development/OSPRay-0.10.1/build'
make[1]: *** [builddir/ospray/intel64/embree-v2.7.1/kernels/xeonphi/CMakeFiles/embree_xeonphi.dir/all] Error 2
make[1]: Leaving directory `/home/development/OSPRay-0.10.1/build'
make: *** [all] Error 2&lt;/PRE&gt;

&lt;P&gt;Any idea how to resolve? Here's some details about the system: mpss 3.7.1, Ubuntu 14.04, icpc (ICC) 16.0.3 20160415&lt;/P&gt;

&lt;P&gt;I set up the mpss on Ubuntu by following these instructions: &lt;A href="http://arrayfire.com/getting-started-with-the-intel-xeon-phi-on-ubuntu-14-04linux-kernel-3-13-0/"&gt;http://arrayfire.com/getting-started-with-the-intel-xeon-phi-on-ubuntu-1...&lt;/A&gt; I'm able to run a test program so I think the installation went successfully.&lt;/P&gt;

&lt;P&gt;I've also successfully run an OSPRay-based renderer on the KNC on the same system using a pre-built version of Embree; the compilation issue persists.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:11:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106545#M70613</guid>
      <dc:creator>Jason_L_2</dc:creator>
      <dc:date>2016-08-19T23:11:02Z</dc:date>
    </item>
    <item>
      <title>I did not find any similar</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106546#M70614</link>
      <description>&lt;P&gt;I did not find any similar previous reports of this specific error so I need to inquire w/Development. They may need a reproducing test case. Would you be able to compile with &lt;STRONG&gt;-P&lt;/STRONG&gt; and then attach the resulting .i file to a reply in the meantime?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 09:17:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106546#M70614</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2016-08-20T09:17:21Z</dc:date>
    </item>
    <item>
      <title>I'm waiting for some</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106547#M70615</link>
      <description>&lt;P&gt;I'm waiting for some additional advice; however,&amp;nbsp;I was given some guidance "that a workaround would be to disable the diagnostic.&amp;nbsp; Though it is an error, it is a discretionary error. Adding &lt;STRONG&gt;-wd137&lt;/STRONG&gt; should make this go away."&lt;/P&gt;

&lt;P&gt;Having a reproducing test case will help expedite the investigation w/Development so if you can produce the .i file we'd appreciate that.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:57:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106547#M70615</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2016-08-23T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Thanks for your reply. For</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106548#M70616</link>
      <description>&lt;P&gt;Thanks for your reply. For now I have worked around the issue by using a pre-built embree distribution but I still can not build embree from source with KNC support.&lt;/P&gt;

&lt;P&gt;I ran the following command (using embree v2.9.0 source):&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;cd /home/development/embree/build/kernels/xeonphi &amp;amp;&amp;amp; icpc   -DTASKING_LOCKSTEP -D__TARGET_XEON_PHI__ -Dembree_xeonphi_EXPORTS -I/home/development/embree/build -I/home/development/embree/include -I/home/development/embree/kernels/xeonphi -I/home/development/embree/build/kernels/xeonphi  -mmic -restrict -Wall -wd177 -fasm-blocks -fPIC -std=c++11 -O3 -g -DNDEBUG -fp-model fast -fimf-precision=low -fasm-blocks -no-inline-max-total-size -inline-factor=200 -fPIC  -fma  -restrict -no-prec-div -no-prec-sqrt  -mGLOB_default_function_attrs="use_vec_for_imul=on;use_fast_math=on;gather_scatter_loop_jknzd=on;gather_scatter_loop_unroll=2;use_gather_scatter_hint=on;c_sch_nop_insertion=on;c_avoid_movz_and_movs=off;c_avoid_integer_ciscization=on;avoid_long_vector_ints=on;avoid_loads_with_extend=on;smart_mem_conflicts=on"  -mP2OPT_hlo_prefetch=F  -fPIC  -P -o scene_subdiv_mesh.cpp.i /home/development/embree/kernels/common/scene_subdiv_mesh.cpp&lt;/PRE&gt;

&lt;P&gt;I attached the output file.&lt;/P&gt;

&lt;P&gt;I also tried compiling one of the problematic files with the -wd137 flag and the addition of that flag did allow the compilation to complete successfully.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:42:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106548#M70616</guid>
      <dc:creator>Jason_L_2</dc:creator>
      <dc:date>2016-08-23T21:42:14Z</dc:date>
    </item>
    <item>
      <title>Thank you for the .i file. I</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106549#M70617</link>
      <description>&lt;P&gt;Thank you for the .i file. I am&amp;nbsp;able to reproduce the error #137 and directed the issue to our Developers for deeper analysis. The &lt;STRONG&gt;-wd137 &lt;/STRONG&gt;appears to lead to infinite compilation unfortunately.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200413875)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 08/27/2016): &lt;/STRONG&gt;Development closed the internal tracking report as "not a defect" believing the issue was with the Embree sources. See subsequent posts for details.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 11:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106549#M70617</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2016-08-27T11:19:00Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106550#M70618</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I think this is a bug in the Embree sources not the compiler.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I reduced the code to the following -- which gives similar compilation errors with GNU and clang also:&lt;/P&gt;

&lt;P&gt;#include &amp;lt;algorithm&amp;gt;&lt;/P&gt;

&lt;P&gt;// foo is actually embree::ParallelRadixSort::Task&amp;lt;Ty, Key&amp;gt;::radixIteration&lt;BR /&gt;
	template &amp;lt;class Ty&amp;gt;&lt;BR /&gt;
	void foo(Ty* __restrict const src, Ty* __restrict const dst) &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note that src and dest are declared const and therefore can't be swapped&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;std::swap(src,dst);&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;int main() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; int* ip;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; foo(ip,ip);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; return 0;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;Perhaps you need to post this in the Embree forum here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/embree-photo-realistic-ray-tracing-kernels" target="_blank"&gt;https://software.intel.com/en-us/forums/embree-photo-realistic-ray-tracing-kernels&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;good luck,&lt;/P&gt;

&lt;P&gt;Judy&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 16:44:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106550#M70618</guid>
      <dc:creator>Judith_W_Intel</dc:creator>
      <dc:date>2016-08-27T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106551#M70619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;sorry for the delay but I just came across this today. I've fixed the "const" declaration in Embree's "knc" branch. Please let me know whether this works for you.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 14:30:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Issue-compiling-Embree-with-KNC-support-using-icpc/m-p/1106551#M70619</guid>
      <dc:creator>BenthinC_Intel</dc:creator>
      <dc:date>2016-09-04T14:30:54Z</dc:date>
    </item>
  </channel>
</rss>

