<?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 Unable to find Intel platform at runtime on Linux in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821290#M1091</link>
    <description>Hi Evgeny,&lt;BR /&gt;&lt;BR /&gt;I'm using Linux 2.6.18-238 CentOS release 5.5&lt;BR /&gt;
&lt;BR /&gt;Some progress here. Trying to directly link in the Intel libraries, I'm now getting:&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; std::__ostream_insert&lt;CHAR&gt; &amp;gt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;, char const*, long)@GLIBCXX_3.4.9'&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `numa_node_to_cpus@libnuma_1.2'&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `numa_max_node@libnuma_1.1'&lt;BR /&gt;&lt;BR /&gt;I'm not sure what's triggering these last two, but I know the first one. If I go back to not linking in libintelocl.so and force my process at runtime to use a newer libstdc++.so (from GCC 4.3.5 instead of 4.1.2), then I now get both "NVIDIA" and "Intel" as identified platforms.&lt;BR /&gt;&lt;BR /&gt;Next step: try an actual kernel. I'll post back and let you know if I have any success with this.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;- Rob&lt;BR /&gt;&lt;BR /&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;</description>
    <pubDate>Mon, 03 Oct 2011 11:12:12 GMT</pubDate>
    <dc:creator>robpieke</dc:creator>
    <dc:date>2011-10-03T11:12:12Z</dc:date>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821286#M1087</link>
      <description>I'm struggling to get the 1.5 SDK working in Linux. I copied the code from the User's Guide (with a tiny fix - noted below). But when I execute the code, it only finds my NVIDIA card as a possible platform.&lt;BR /&gt;&lt;BR /&gt;The Intel files are at least being polled, but somehow rejected.&lt;BR /&gt;&lt;BR /&gt;How can I debug this further?&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;THE OUTPUT FROM 'strace -eopen':&lt;BR /&gt;&lt;/B&gt;...&lt;BR /&gt;open("/etc/OpenCL/vendors/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3&lt;BR /&gt;open("/etc/OpenCL/vendors/nvidia.icd", O_RDONLY) = 4&lt;BR /&gt;open("/etc/ld.so.cache", O_RDONLY) = 5&lt;BR /&gt;open("/usr/lib64/libcuda.so", O_RDONLY) = 5&lt;BR /&gt;open("/usr/lib64/libz.so.1", O_RDONLY) = 5&lt;BR /&gt;open("/proc/stat", O_RDONLY) = 5&lt;BR /&gt;open("/dev/nvidiactl", O_RDWR) = 5&lt;BR /&gt;open("/dev/nvidia0", O_RDWR) = 6&lt;BR /&gt;open("/proc/interrupts", O_RDONLY) = 7&lt;BR /&gt;open("/dev/nvidia0", O_RDWR) = 7&lt;BR /&gt;open("/proc/interrupts", O_RDONLY) = 8&lt;BR /&gt;open("/dev/nvidia0", O_RDWR) = 8&lt;BR /&gt;open("/proc/interrupts", O_RDONLY) = 9&lt;BR /&gt;open("/etc/OpenCL/vendors/intelocl64.icd", O_RDONLY) = 4&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libintelocl.so", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/tls/x86_64/libcl_logger.so", O_RDONLY) = -1 ENOENT (No such file or directory)&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/tls/libcl_logger.so", O_RDONLY) = -1 ENOENT (No such file or directory)&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/x86_64/libcl_logger.so", O_RDONLY) = -1 ENOENT (No such file or directory)&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libcl_logger.so", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libtask_executor.so", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libnuma.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)&lt;BR /&gt;open("/etc/ld.so.cache", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/libnuma.so.1", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libtbb.so.2", O_RDONLY) = 9&lt;BR /&gt;open("/usr/lib64/OpenCL/vendors/intel/libtbbmalloc.so.2", O_RDONLY) = 9&lt;BR /&gt;open("/lib64/librt.so.1", O_RDONLY) = 9&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;FOUND A PLATFORM: NVIDIA Corporation&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;THE CODE:&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]#include &lt;CL&gt;
#include &lt;IOSTREAM&gt;

int main()
{
	cl_platform_id * platforms = NULL;
	char vendor_name[128] = {0};
	cl_uint num_platforms = 0;
	// get number of available platforms
	cl_int err = clGetPlatformIDs(0, NULL, &amp;amp; num_platforms);
	if (CL_SUCCESS != err)
	{
		// handle error
	}
	platforms = (cl_platform_id*)malloc(
				sizeof(cl_platform_id)* num_platforms);  // ***THE USER'S GUIDE PDF HAS A SLIGHT TYPO HERE***
	if (NULL == platforms)
	{
		// handle error
	}
	err = clGetPlatformIDs(num_platforms, platforms, NULL);
	if (CL_SUCCESS != err)
	{
		// handle error
	}
	for (cl_uint ui=0; ui&amp;lt; num_platforms; ++ui)
	{
		err = clGetPlatformInfo(platforms[ui],
					CL_PLATFORM_VENDOR,
					128 * sizeof(char),
					vendor_name,NULL);
		if (CL_SUCCESS != err)
		{
			// handle error
		}
		if (vendor_name != NULL)
		{
			{
				std::cout &amp;lt;&amp;lt; "FOUND A PLATFORM: " &amp;lt;&amp;lt; vendor_name &amp;lt;&amp;lt; std::endl;
			}
		}
	}
	return 0;
}
[/cpp]&lt;/IOSTREAM&gt;&lt;/CL&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2011 10:27:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821286#M1087</guid>
      <dc:creator>robpieke</dc:creator>
      <dc:date>2011-09-29T10:27:20Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821287#M1088</link>
      <description>Please check the origination of libOpenCL.so.&lt;BR /&gt;Is it comes from NVidia or Intel? Which OCL version of the NVidia drivers do you have?&lt;BR /&gt;&lt;BR /&gt;It's possiable that thereare compatability issues.</description>
      <pubDate>Sun, 02 Oct 2011 08:52:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821287#M1088</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-10-02T08:52:26Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821288#M1089</link>
      <description>Hi Evgeny,&lt;BR /&gt;&lt;BR /&gt;I've tried switching between the NVIDIA and Intel libOpenCL.so and issue occurs in both cases. When using the Intel version, I get two extra output lines from strace:&lt;BR /&gt;&lt;BR /&gt;open("/sys/devices/system/node", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3&lt;BR /&gt;open("/sys/devices/system/node", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3&lt;BR /&gt;&lt;BR /&gt;Dumping out more data about the identified NVIDIA platform:&lt;BR /&gt;&lt;BR /&gt; CL_DEVICE_NAME: Quadro 4000&lt;BR /&gt; CL_DEVICE_VENDOR: NVIDIA Corporation&lt;BR /&gt; CL_DRIVER_VERSION: 275.28&lt;BR /&gt; CL_DEVICE_TYPE: CL_DEVICE_TYPE_GPU&lt;BR /&gt;...&lt;BR /&gt;clDeviceQuery, Platform Name = NVIDIA CUDA, Platform Version = OpenCL 1.0 CUDA 4.0.1, NumDevs = 1, Device = Quadro 4000&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;- Rob</description>
      <pubDate>Mon, 03 Oct 2011 08:42:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821288#M1089</guid>
      <dc:creator>robpieke</dc:creator>
      <dc:date>2011-10-03T08:42:33Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821289#M1090</link>
      <description>Which linux version are you using?&lt;BR /&gt;&lt;BR /&gt;Please try to link directly with libintelocl.so.&lt;BR /&gt;&lt;BR /&gt;Evgeny</description>
      <pubDate>Mon, 03 Oct 2011 09:28:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821289#M1090</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-10-03T09:28:27Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821290#M1091</link>
      <description>Hi Evgeny,&lt;BR /&gt;&lt;BR /&gt;I'm using Linux 2.6.18-238 CentOS release 5.5&lt;BR /&gt;
&lt;BR /&gt;Some progress here. Trying to directly link in the Intel libraries, I'm now getting:&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; std::__ostream_insert&lt;CHAR&gt; &amp;gt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;, char const*, long)@GLIBCXX_3.4.9'&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `numa_node_to_cpus@libnuma_1.2'&lt;BR /&gt;&lt;BR /&gt;/usr/lib64/OpenCL/vendors/intel/libintelocl.so:-1: error: undefined reference to `numa_max_node@libnuma_1.1'&lt;BR /&gt;&lt;BR /&gt;I'm not sure what's triggering these last two, but I know the first one. If I go back to not linking in libintelocl.so and force my process at runtime to use a newer libstdc++.so (from GCC 4.3.5 instead of 4.1.2), then I now get both "NVIDIA" and "Intel" as identified platforms.&lt;BR /&gt;&lt;BR /&gt;Next step: try an actual kernel. I'll post back and let you know if I have any success with this.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;- Rob&lt;BR /&gt;&lt;BR /&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;</description>
      <pubDate>Mon, 03 Oct 2011 11:12:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821290#M1091</guid>
      <dc:creator>robpieke</dc:creator>
      <dc:date>2011-10-03T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821291#M1092</link>
      <description>Success! All CPU cores go to 100% and I get the same results as from my GPU.&lt;BR /&gt;&lt;BR /&gt;Looks like it was as simple as libintelocl.so expecting a newer version of libstdc++</description>
      <pubDate>Mon, 03 Oct 2011 11:27:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821291#M1092</guid>
      <dc:creator>robpieke</dc:creator>
      <dc:date>2011-10-03T11:27:40Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821292#M1093</link>
      <description>Hi Rob,&lt;BR /&gt;&lt;BR /&gt;We support only gcc 4.3.x and up, supporting RH6 and SUSE11.1, older/other OS's currently are not supported.&lt;BR /&gt;&lt;BR /&gt;I suggest youtotry upgradeto CentOS 6.0, although it's not officially supported.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2011 12:50:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821292#M1093</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-10-03T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Unable to find Intel platform at runtime on Linux</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821293#M1094</link>
      <description>Thanks Evgeny.&lt;BR /&gt;&lt;BR /&gt;Unfortunately upgrading the OS isn't an option for me at the moment, so I'll have to fight my way forward in "unsupported mode".&lt;BR /&gt;&lt;BR /&gt;Fortunately, as mentioned, switching to the gcc4.3 version of libstdc++ is doing the trick.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;- Rob</description>
      <pubDate>Mon, 03 Oct 2011 13:17:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Unable-to-find-Intel-platform-at-runtime-on-Linux/m-p/821293#M1094</guid>
      <dc:creator>robpieke</dc:creator>
      <dc:date>2011-10-03T13:17:34Z</dc:date>
    </item>
  </channel>
</rss>

