<?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 embree on vista and any processor in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964676#M244</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;first let me thank you for a great library. I am going to use it in my project, but there are two problems:&lt;/P&gt;
&lt;P&gt;- I need to use it on Vista&lt;/P&gt;
&lt;P&gt;- I need to use it on a bit older processors with SSE_2 support (also AMD)&lt;/P&gt;
&lt;P&gt;Is there a chance that version 2.0 will automatically select code for given processor at runtime?&lt;/P&gt;
&lt;P&gt;Now I can compile for sse 3.0 or 4.2 to get maximum speed but limiting program usage to latest processors,&lt;/P&gt;
&lt;P&gt;or compile to SSE_2 and lose most of its power...&lt;/P&gt;
&lt;P&gt;Also Vista support would be a big plus.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2013 12:25:26 GMT</pubDate>
    <dc:creator>zsacul</dc:creator>
    <dc:date>2013-03-07T12:25:26Z</dc:date>
    <item>
      <title>embree on vista and any processor</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964676#M244</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;first let me thank you for a great library. I am going to use it in my project, but there are two problems:&lt;/P&gt;
&lt;P&gt;- I need to use it on Vista&lt;/P&gt;
&lt;P&gt;- I need to use it on a bit older processors with SSE_2 support (also AMD)&lt;/P&gt;
&lt;P&gt;Is there a chance that version 2.0 will automatically select code for given processor at runtime?&lt;/P&gt;
&lt;P&gt;Now I can compile for sse 3.0 or 4.2 to get maximum speed but limiting program usage to latest processors,&lt;/P&gt;
&lt;P&gt;or compile to SSE_2 and lose most of its power...&lt;/P&gt;
&lt;P&gt;Also Vista support would be a big plus.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 12:25:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964676#M244</guid>
      <dc:creator>zsacul</dc:creator>
      <dc:date>2013-03-07T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Embree requires at least</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964677#M245</link>
      <description>&lt;P&gt;Embree requires at least SSSE3, compiling the code for earlier SSE versions will fail. We will relax this requirement in the future, however, older CPUs will not see best performance. Embree does currently not support automatic code selection at runtime.&lt;/P&gt;
&lt;P&gt;Could you please post the compile issue you have with Windows Vista?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:30:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964677#M245</guid>
      <dc:creator>SvenW_Intel</dc:creator>
      <dc:date>2013-03-11T09:30:45Z</dc:date>
    </item>
    <item>
      <title>OK, I commented:</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964678#M246</link>
      <description>&lt;P&gt;OK, I commented:&lt;/P&gt;
&lt;P&gt;//#define __SSE4_2__&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in platform.h, now it works on processors since core 2 duo.&lt;/P&gt;
&lt;P&gt;About Vista:&lt;/P&gt;
&lt;P&gt;it does not work on vanila Vista (without service pack, and I did not test it with SP) when I compile it on Win8.&lt;/P&gt;
&lt;P&gt;What I do:&lt;/P&gt;
&lt;P&gt;changed&amp;nbsp;#if (_WIN32_WINNT &amp;gt;= 0x0601) code to its #elseif that is:&lt;/P&gt;
&lt;P&gt;size_t getNumberOfLogicalThreads() &lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; SYSTEM_INFO sysinfo;&lt;BR /&gt;&amp;nbsp; GetSystemInfo(&amp;amp;sysinfo);&lt;BR /&gt;&amp;nbsp; return sysinfo.dwNumberOfProcessors;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;void setAffinity(HANDLE thread, ssize_t affinity)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if (!SetThreadAffinityMask(thread, DWORD_PTR(uint64(1) &amp;lt;&amp;lt; affinity)))&lt;BR /&gt;&amp;nbsp;throw std::runtime_error("cannot set thread affinity mask");&lt;BR /&gt;&amp;nbsp;if (SetThreadIdealProcessor(thread, (DWORD)affinity) == (DWORD)-1)&lt;BR /&gt;&amp;nbsp;throw std::runtime_error("cannot set thread ideal processor");&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Now it works on Vista.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Another question about library usage, how should I annotate my commercial product?&lt;/P&gt;
&lt;P&gt;"This program uses Embree&amp;nbsp;Ray Tracing Kernels&amp;nbsp;Licensed under the Apache License, Version 2.0&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt; &amp;nbsp;" is it OK?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 14:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/embree-on-vista-and-any-processor/m-p/964678#M246</guid>
      <dc:creator>zsacul</dc:creator>
      <dc:date>2013-03-11T14:12:14Z</dc:date>
    </item>
  </channel>
</rss>

