<?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 Running Open Cl implementation for Sobel on CPU in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Running-Open-Cl-implementation-for-Sobel-on-CPU/m-p/1134418#M5764</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I followed Intel tutorial on the following link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/INDE-OpenCL-Sobel" target="_blank"&gt;https://software.intel.com/en-us/INDE-OpenCL-Sobel&lt;/A&gt; ( run Sobel using OpenCl )&lt;/P&gt;

&lt;P&gt;It ran successfully on GPU. However, when I changed the command line arguments&amp;nbsp;from GPU to CPU and&amp;nbsp;also changed the device to CPU, it didn't&amp;nbsp;work. I got the following error:&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Error&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;1&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;error MSB3721: The command ""C:\Intel\OpenCL\sdk\bin\x86\ioc32.exe" -cmd=build -input=".......Visual Studio 2013\Projects\Sobel_OCL\SobelKernels.cl" -output="Debug\SobelKernels.out" -VS -device=CPU -simd=default -targetos=current&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -bo="&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"" exited with code -1073741819.&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\IntelOpenCL.targets&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;98&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;5&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;Sobel_OCL.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Although&amp;nbsp;the usage of this program&amp;nbsp;says: "&amp;nbsp;Usage: Sobel [num test iterations] [&lt;STRONG&gt;cpu|gpu&lt;/STRONG&gt;] [intel|amd|nvidia] [SurfWidth(^2 only)] [SurfHeight(^2 only)] [show_CL | no_show_CL".&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;What should I do to run the code on CPU only? knowing that I installed CPU only runtime for OpenCL.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Any help and suggestion are highly appreciated.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Thanks,&lt;/DIV&gt;

&lt;DIV&gt;Samah&lt;/DIV&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;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/INDE-OpenCL-Sobel" target="_blank"&gt;https://software.intel.com/en-us/INDE-OpenCL-Sobel&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 19:38:50 GMT</pubDate>
    <dc:creator>sraha</dc:creator>
    <dc:date>2018-09-25T19:38:50Z</dc:date>
    <item>
      <title>Running Open Cl implementation for Sobel on CPU</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Running-Open-Cl-implementation-for-Sobel-on-CPU/m-p/1134418#M5764</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I followed Intel tutorial on the following link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/INDE-OpenCL-Sobel" target="_blank"&gt;https://software.intel.com/en-us/INDE-OpenCL-Sobel&lt;/A&gt; ( run Sobel using OpenCl )&lt;/P&gt;

&lt;P&gt;It ran successfully on GPU. However, when I changed the command line arguments&amp;nbsp;from GPU to CPU and&amp;nbsp;also changed the device to CPU, it didn't&amp;nbsp;work. I got the following error:&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Error&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;1&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;error MSB3721: The command ""C:\Intel\OpenCL\sdk\bin\x86\ioc32.exe" -cmd=build -input=".......Visual Studio 2013\Projects\Sobel_OCL\SobelKernels.cl" -output="Debug\SobelKernels.out" -VS -device=CPU -simd=default -targetos=current&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -bo="&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"" exited with code -1073741819.&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\IntelOpenCL.targets&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;98&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;5&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;Sobel_OCL.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Although&amp;nbsp;the usage of this program&amp;nbsp;says: "&amp;nbsp;Usage: Sobel [num test iterations] [&lt;STRONG&gt;cpu|gpu&lt;/STRONG&gt;] [intel|amd|nvidia] [SurfWidth(^2 only)] [SurfHeight(^2 only)] [show_CL | no_show_CL".&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;What should I do to run the code on CPU only? knowing that I installed CPU only runtime for OpenCL.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Any help and suggestion are highly appreciated.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Thanks,&lt;/DIV&gt;

&lt;DIV&gt;Samah&lt;/DIV&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;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/INDE-OpenCL-Sobel" target="_blank"&gt;https://software.intel.com/en-us/INDE-OpenCL-Sobel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:38:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Running-Open-Cl-implementation-for-Sobel-on-CPU/m-p/1134418#M5764</guid>
      <dc:creator>sraha</dc:creator>
      <dc:date>2018-09-25T19:38:50Z</dc:date>
    </item>
    <item>
      <title>SamahR,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Running-Open-Cl-implementation-for-Sobel-on-CPU/m-p/1134419#M5765</link>
      <description>&lt;P&gt;SamahR,&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;However, when I changed the command line arguments&amp;nbsp;from GPU to CPU and&amp;nbsp;also changed the device to CPU, it didn't&amp;nbsp;work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Can you explain what you changed exactly where? I don't follow... Was it at project level?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;If you're on a system with Intel® Graphics and have it's driver package installed... that should come with both CPU and Intel Graphics OpenCL implementations. ioc64 or ioc32 should serve as pass through to the respective Intel implementations when -device= is used.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Can you execute the offline compiler front end command in the error listed by hand? That might provide some hints. Perhaps the install paths are different. Could be many things.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-MichaelC&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 23:28:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Running-Open-Cl-implementation-for-Sobel-on-CPU/m-p/1134419#M5765</guid>
      <dc:creator>Michael_C_Intel1</dc:creator>
      <dc:date>2018-09-25T23:28:28Z</dc:date>
    </item>
  </channel>
</rss>

