<?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 Do you mean kernel like this: in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053805#M4107</link>
    <description>&lt;P&gt;Do you mean kernel like this:&lt;/P&gt;

&lt;P&gt;__kernel void test_local()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int s_testValue[10][10];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int* rowStartThisThread = &amp;amp;(s_testValue[0][0]);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;s_testValue[0][0] = 5;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;What happens if you put the barrier after assigning 5 and observe things after the barrier?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2015 23:24:44 GMT</pubDate>
    <dc:creator>Robert_I_Intel</dc:creator>
    <dc:date>2015-03-16T23:24:44Z</dc:date>
    <item>
      <title>VS Memory/Watchlists window content inaccurate during debugging</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053804#M4106</link>
      <description>&lt;P&gt;Using code buiider 1.3.0.92 under windows 7 and VS 2010 sp1....&lt;/P&gt;

&lt;P&gt;If&amp;nbsp; I run a hack kernel like this...&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	__kernel void test_local()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int s_testValue[10][10];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int* rowStartThisThread = &amp;amp;(s_mcuValues[0][0]);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;s_mcuValues[0][0] = 5;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;and set a breakpoint after the setting of the 5, then the VS memory and watchlists don't see the '5' (they only see zeros), however the rowStartThisThread&amp;nbsp; pointer does show it correctly. Am I making some bad assumptions here?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 23:18:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053804#M4106</guid>
      <dc:creator>PCox</dc:creator>
      <dc:date>2015-03-16T23:18:33Z</dc:date>
    </item>
    <item>
      <title>Do you mean kernel like this:</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053805#M4107</link>
      <description>&lt;P&gt;Do you mean kernel like this:&lt;/P&gt;

&lt;P&gt;__kernel void test_local()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int s_testValue[10][10];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;__local int* rowStartThisThread = &amp;amp;(s_testValue[0][0]);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;s_testValue[0][0] = 5;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;What happens if you put the barrier after assigning 5 and observe things after the barrier?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 23:24:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053805#M4107</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-03-16T23:24:44Z</dc:date>
    </item>
    <item>
      <title>Hi Robert, thanks for the</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053806#M4108</link>
      <description>&lt;P&gt;Hi Robert, thanks for the impressively quick response! Yes sorry I changed the variable names inconsistently at the last minute before posting.&lt;/P&gt;

&lt;P&gt;But sigh.&lt;/P&gt;

&lt;P&gt;I put a barrier(CLK_LOCAL_MEM_FENCE) in, and, yes, it all sprang to life as I would have expected. But I then restored the code back to what it was, only to have it &lt;EM&gt;continue &lt;/EM&gt;working. I really dislike heisenberg faults.....&lt;/P&gt;

&lt;P&gt;I can't think of any unaccounted variables in play here (btw I'm only launching a single thread). Meanwhile the problem in the real part of the code continues, with or without a barrier. Very frustrating.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:07:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/VS-Memory-Watchlists-window-content-inaccurate-during-debugging/m-p/1053806#M4108</guid>
      <dc:creator>PCox</dc:creator>
      <dc:date>2015-03-17T00:07:07Z</dc:date>
    </item>
  </channel>
</rss>

