<?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 Sorry for the delayed reply.  in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-code-is-crashing-with-intel-OpenCL-lib/m-p/1114231#M5350</link>
    <description>&lt;P&gt;Sorry for the delayed reply.&amp;nbsp; I&amp;nbsp;verified that your code is fine in&amp;nbsp;Visual Studio.&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Do you have an AMD GPU on your system too, or just the i7-5500U processor?&lt;/P&gt;

&lt;P&gt;You have probably already tried this, but the first step is probably to reinstall OpenCL then follow the install steps here again: &lt;A href="https://software.intel.com/en-us/node/671831"&gt;https://software.intel.com/en-us/node/671831&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm gathering more info on the Eclipse install + troubleshooting.&amp;nbsp; Hope to get back to you with more info soon.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Sep 2016 01:08:57 GMT</pubDate>
    <dc:creator>Jeffrey_M_Intel1</dc:creator>
    <dc:date>2016-09-10T01:08:57Z</dc:date>
    <item>
      <title>OpenCL code is crashing with intel OpenCL.lib</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-code-is-crashing-with-intel-OpenCL-lib/m-p/1114230#M5349</link>
      <description>&lt;P&gt;I am developing the OpenCL app on Windows with Eclipse CDT (Mars)&amp;nbsp; and&amp;nbsp; intel_sdk_for_opencl_setup_6.1.0.1600, the devices of computer is as follow:&lt;/P&gt;

&lt;P&gt;OS: Windows 10 pro&lt;/P&gt;

&lt;P&gt;CPU: I7-5500U&lt;/P&gt;

&lt;P&gt;Driver:win64_15407.4279.exe()&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Problem: Although the code is build successfully, it is crashing and generate the tips window as follow when it is running in Eclipse CDT. In fact, it&amp;nbsp; can be built and ran in the same IDE and OS by insteading the file OpenCL.lib(which is come from intel OpenCL SDK and locates in &lt;/STRONG&gt;C:\Program Files (x86)\Intel\OpenCL SDK\6.1\lib\x64\&lt;STRONG&gt;OpenCL.lib&lt;/STRONG&gt; &lt;STRONG&gt;) by the &lt;/STRONG&gt;counterpoint&lt;STRONG&gt; of AMD OpenCL SDK(&lt;/STRONG&gt;***\AMD APP\lib\x64\&lt;STRONG&gt;OpenCL.lib).&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Besides replacing the file (C:\Program Files (x86)\Intel\OpenCL SDK\6.1\lib\x64\&lt;STRONG&gt;OpenCL.lib) with (&lt;/STRONG&gt;***\AMD APP\lib\x64\&lt;STRONG&gt;OpenCL.lib), how can I run the code as follow successfully with native &lt;/STRONG&gt; intel_sdk_for_opencl_setup_6.1.0.1600 and Eclipse CDT ?&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include&amp;lt;CL/cl.h&amp;gt;

int main(int argc, char *argv[]) {
	cl_uint err;
	cl_uint num_platform;
	cl_platform_id *platform;
	
	err = clGetPlatformIDs(0, NULL, &amp;amp;num_platform);
	if (CL_SUCCESS == err)
		printf("Number of Detected OpenCL platforms: %d\n\n", num_platform);
	else
		printf("Error calling clGetPlatformIDs. Error code: %d \n", err);

	platform = (cl_platform_id *) malloc(sizeof(cl_platform_id) * num_platform);
	
	err = clGetPlatformIDs(num_platform, platform, NULL);
	size_t size;

	for (cl_uint i = 0; i &amp;lt; num_platform; i++) {
		
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_NAME, 0, NULL, &amp;amp;size);
		char *PName = (char *) malloc(size);
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_NAME, size, PName,NULL);
		printf("PName:%s\n", PName);
		
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_VENDOR, 0, NULL,&amp;amp;size);
		char *PVendor = (char *) malloc(size);
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_VENDOR, size, PVendor,NULL);
		printf("PVendor:%s\n", PVendor);
	
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_VERSION, 0, NULL,&amp;amp;size);
		char *PVersion = (char *) malloc(size);
		err = clGetPlatformInfo(platform&lt;I&gt;, CL_PLATFORM_VERSION, size,PVersion, NULL);
		printf("PVersion:%s\n", PVersion);
		printf("i=%d err=%d\n\n", i, err);
	}
	return 0;
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2016 06:40:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-code-is-crashing-with-intel-OpenCL-lib/m-p/1114230#M5349</guid>
      <dc:creator>chengzi</dc:creator>
      <dc:date>2016-08-28T06:40:28Z</dc:date>
    </item>
    <item>
      <title>Sorry for the delayed reply. </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-code-is-crashing-with-intel-OpenCL-lib/m-p/1114231#M5350</link>
      <description>&lt;P&gt;Sorry for the delayed reply.&amp;nbsp; I&amp;nbsp;verified that your code is fine in&amp;nbsp;Visual Studio.&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Do you have an AMD GPU on your system too, or just the i7-5500U processor?&lt;/P&gt;

&lt;P&gt;You have probably already tried this, but the first step is probably to reinstall OpenCL then follow the install steps here again: &lt;A href="https://software.intel.com/en-us/node/671831"&gt;https://software.intel.com/en-us/node/671831&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm gathering more info on the Eclipse install + troubleshooting.&amp;nbsp; Hope to get back to you with more info soon.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2016 01:08:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-code-is-crashing-with-intel-OpenCL-lib/m-p/1114231#M5350</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-09-10T01:08:57Z</dc:date>
    </item>
  </channel>
</rss>

