<?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 The problem disappeared after in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133754#M5752</link>
    <description>&lt;P&gt;The problem disappeared after I switched to the 2019 version.&lt;/P&gt;&lt;P&gt;In the System Studio bundle I only selected the OpenCL tool.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 08:47:27 GMT</pubDate>
    <dc:creator>ZHANG__Li1</dc:creator>
    <dc:date>2018-11-13T08:47:27Z</dc:date>
    <item>
      <title>Intel OpenCL Platform Disappears in Debug Mode</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133752#M5750</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I am using Visual Studio 2017 version 15.4.5 with “Intel SDK for OpenCL for Windows” version 7.0.0.2567.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;If I launch an OpenCL project from Visual Studio without debugging, clGetPlatformIDs(0, NULL, &amp;amp;n) gives 3 platforms. If I get details on the 3 platforms, they are:&lt;BR /&gt;
	1) Nvidia&lt;BR /&gt;
	2) AMD&lt;BR /&gt;
	3) Intel&lt;/P&gt;

&lt;P&gt;The Intel platform contains the Intel CPU and integrated Intel GPU for this machine.&lt;/P&gt;

&lt;P&gt;However, if I launch an OpenCL project from Visual Studio with debugging, clGetPlatformIDs(0, NULL, &amp;amp;n) only gives 2 platforms. The platforms in that case are:&lt;BR /&gt;
	1) Nvidia&lt;BR /&gt;
	2) AMD&lt;/P&gt;

&lt;P&gt;Strangely, the OpenCL API trace view shows that clGetPlatformIDs returned an error code of -1001, but my code sees a return value of CL_SUCCESS. I see that happen even in the simplest possible program:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;cl_int clErr = 9999; // Initialize to something invalid
cl_uint n;
clErr = clGetPlatformIDs(0, NULL, &amp;amp;n);
// n is now 2 if running in debug mode, and clErr is now CL_SUCCESS, but
// the Trace View says that clGetPlatformIDs returned error code -1001&lt;/PRE&gt;

&lt;P&gt;How does clGetPlatformIDs simultaneously return both CL_SUCCESS and -1001 (CL_PLATFORM_NOT_FOUND_KHR) in a single call?&lt;/P&gt;

&lt;P&gt;Why does the Intel OpenCL platform not appear when debugging? I want to debug code that uses the Intel OpenCL platform. I have the same issue even when running Intel’s OpenCL template project, so it does not appear to be a Visual Studio project setting problem.&lt;/P&gt;

&lt;P&gt;I have found that if I disable “OpenCL API Debugger” in the Code-Builder plugin in Visual Studio, the Intel platform appears when debugging. However, disabling the OpenCL API debugger seems to defeat the purpose of wanting to debug OpenCL.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:41:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133752#M5750</guid>
      <dc:creator>aaronCuda</dc:creator>
      <dc:date>2018-06-01T15:41:22Z</dc:date>
    </item>
    <item>
      <title>I was just hit by the same</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133753#M5751</link>
      <description>&lt;P&gt;I was just hit by the same problem&lt;BR /&gt;(Win10 x64, Intel i7 + HD 630, with the latest version of Intel OCL SDK)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 06:40:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133753#M5751</guid>
      <dc:creator>ZHANG__Li1</dc:creator>
      <dc:date>2018-11-13T06:40:44Z</dc:date>
    </item>
    <item>
      <title>The problem disappeared after</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133754#M5752</link>
      <description>&lt;P&gt;The problem disappeared after I switched to the 2019 version.&lt;/P&gt;&lt;P&gt;In the System Studio bundle I only selected the OpenCL tool.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:47:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Platform-Disappears-in-Debug-Mode/m-p/1133754#M5752</guid>
      <dc:creator>ZHANG__Li1</dc:creator>
      <dc:date>2018-11-13T08:47:27Z</dc:date>
    </item>
  </channel>
</rss>

