<?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 Hi Colin. in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080222#M4645</link>
    <description>&lt;P&gt;Hi Colin.&lt;/P&gt;

&lt;P&gt;I tried your kernel and it worked for me, so to understand what the error please provide more info by following these steps:&lt;/P&gt;

&lt;P&gt;1) in the "Code Builder Session Explorer" view, right click on the HTML report and "Open Containing Folder".&lt;BR /&gt;
	2) open the HTML in an external browser (Firefox is preferred) and go to the "Kernel Analysis" drop menu and choose your kernel.&lt;BR /&gt;
	because you're in a browser mode, the report will display&amp;nbsp;the analysis command-line for you to run manually.&lt;BR /&gt;
	3)&amp;nbsp;copy the&amp;nbsp;analysis&amp;nbsp;command-line from the report, add "-d" to the end of it and execute it.&lt;BR /&gt;
	&lt;BR /&gt;
	the "-d" will print debug messages that should indicate what went wrong during the analysis.&lt;BR /&gt;
	please share the output so that we can assist you further.&lt;BR /&gt;
	also please provide more info about the OS and&amp;nbsp;Platform you're running analysis on.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;thanks,&lt;BR /&gt;
	Magdy&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jan 2017 15:08:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-29T15:08:06Z</dc:date>
    <item>
      <title>Code Builder Kernel Analysis errors</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080221#M4644</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When I create a brand new Code Builder session, using a simple vector Add kernel, Build works fine.&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt; __kernel void Add_1D(__global int* pA, __global int* pB, __global int* pC)
{
    const int id    = get_global_id(0);

    pC[id] = pA[id] + pB[id];
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Then I set &amp;nbsp;up buffer variables and run Analyze, which also works, at least the Session Info, Execution Analysis (Execution and Advanced).&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Using global_work_size = {65536,0,0} and local_work_size = (32,0,0)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;However, If I mouse over the Kernel Analysis option, and select a configuration, then Launch Analysis,&lt;/P&gt;

&lt;P&gt;it runs for a bit then says "Analysis has encountered errors." and quits. How can I troubleshoot this?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thx, Colin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:00:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080221#M4644</guid>
      <dc:creator>Colin_Reinhardt</dc:creator>
      <dc:date>2017-01-26T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Hi Colin.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080222#M4645</link>
      <description>&lt;P&gt;Hi Colin.&lt;/P&gt;

&lt;P&gt;I tried your kernel and it worked for me, so to understand what the error please provide more info by following these steps:&lt;/P&gt;

&lt;P&gt;1) in the "Code Builder Session Explorer" view, right click on the HTML report and "Open Containing Folder".&lt;BR /&gt;
	2) open the HTML in an external browser (Firefox is preferred) and go to the "Kernel Analysis" drop menu and choose your kernel.&lt;BR /&gt;
	because you're in a browser mode, the report will display&amp;nbsp;the analysis command-line for you to run manually.&lt;BR /&gt;
	3)&amp;nbsp;copy the&amp;nbsp;analysis&amp;nbsp;command-line from the report, add "-d" to the end of it and execute it.&lt;BR /&gt;
	&lt;BR /&gt;
	the "-d" will print debug messages that should indicate what went wrong during the analysis.&lt;BR /&gt;
	please share the output so that we can assist you further.&lt;BR /&gt;
	also please provide more info about the OS and&amp;nbsp;Platform you're running analysis on.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;thanks,&lt;BR /&gt;
	Magdy&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 15:08:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080222#M4645</guid>
      <dc:creator />
      <dc:date>2017-01-29T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Hi, I am not able to install</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080223#M4646</link>
      <description>&lt;P&gt;Hi, I am not able to install Firefox browser and cannot open the HTML as you suggest using either IE, Edge, or Chrome since they all block local HTML file access.&lt;/P&gt;

&lt;P&gt;I am using Intel SDK for Applications R3 (Version=6.3.0.1904) with MS Visual Studio 2015.&lt;/P&gt;

&lt;P&gt;On a Lenovo Thinkpad P50 (Intel Xeon CPU E3-1505M w/ HD Graphics P530) running Windows 10 64-bit&lt;/P&gt;

&lt;P&gt;My graphics driver version is Intel 20.19.15.4483.&lt;/P&gt;

&lt;P&gt;Is there another way to get/enter the analysis command-line from the Session info to run in with debug output from command-line?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 08:33:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080223#M4646</guid>
      <dc:creator>Colin_Reinhardt</dc:creator>
      <dc:date>2017-01-31T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Hello Intel? I would like to</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080224#M4647</link>
      <description>&lt;P&gt;Hello Intel? I would like to fix this. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:53:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080224#M4647</guid>
      <dc:creator>Colin_Reinhardt</dc:creator>
      <dc:date>2017-02-01T21:53:42Z</dc:date>
    </item>
    <item>
      <title>Here is how you can construct</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080225#M4648</link>
      <description>&lt;P&gt;Here is how you can construct a command line without cut-and-paste from the browser.&amp;nbsp; To test I made a session called Colin_UW, built it, set the variables, etc.&lt;/P&gt;

&lt;P&gt;1. Go to the session directory.&amp;nbsp; By default it is in c:/Users/{your username}/Documents/Code Builder Sessions.&amp;nbsp; Here are the contents of the directory:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ ls
Colin_UW.cbsession&amp;nbsp; program.ir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_Add_1D.meta&amp;nbsp; program_x64.spirv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_x86.spir
Colin_UW.xml&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program.ll&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_x64.ll&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_x64.txtspirv&amp;nbsp; program_x86.spirv
program.cl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_Add_1D.gen&amp;nbsp; program_x64.spir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_x86.ll&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; program_x86.txtspirv&lt;/PRE&gt;

&lt;P&gt;2.&amp;nbsp; Find the configuration name&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ grep 'KBConfigurationNames' Colin_UW.cbsession
KBTabs\2\KBConfigurationNames=config_0&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;3. Find your kernel name:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ grep 'kernel' program.cl
&amp;nbsp;__kernel void Add_1D(__global int* pA, __global int* pB, __global int* pC)&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	4.&amp;nbsp; Now create the CodeBuilder command line.&amp;nbsp; Note that '-d' is added for extra debug info.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ CodeBuilder.exe analyze-session -s Colin_UW.cbsession -k Add_1D -c config_0 -d -f&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ CodeBuilder.exe analyze-kernel -s Colin_UW.cbsession -k Add_1D -c config_0 -d -f&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;5. View the reports:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ Codebuilder --view Out/Add_1D_Out.html&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 04:27:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080225#M4648</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2017-02-02T04:27:49Z</dc:date>
    </item>
    <item>
      <title>Hi Colin,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080226#M4649</link>
      <description>&lt;P&gt;Hi Colin,&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Colin wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi, I am not able to install Firefox browser and cannot open the HTML as you suggest using either IE, Edge, or Chrome since they all block local HTML file access.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;in you internet explorer, press F12, go to the "Emulation" tab and set the&amp;nbsp;document mode to&amp;nbsp;"10" instead of "Edge", it will grant access and you'll see the command.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IE_Emulation.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9382i08515A2EBE2201F2/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="IE_Emulation.png" alt="IE_Emulation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 09:38:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Code-Builder-Kernel-Analysis-errors/m-p/1080226#M4649</guid>
      <dc:creator>Magdy_K_Intel</dc:creator>
      <dc:date>2017-02-02T09:38:27Z</dc:date>
    </item>
  </channel>
</rss>

