<?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 This appears to be a bug in in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020511#M3267</link>
    <description>&lt;P&gt;This appears to be a bug in the .deb installation scripts. &amp;nbsp;Specifically, if I look into the extracted file /var/lib/dpkg/info/opencl-base.postinst, I see this line:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;update-alternatives \&lt;/P&gt;

	&lt;P&gt;--install "/usr/lib/x86_64-linux-gnu/libOpenCL.so" opencl-libOpenCL.so "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so" -2147489036 \&lt;/P&gt;

	&lt;P&gt;--slave "/usr/lib/x86_64-linux-gnu/libOpenCL.so.1" opencl-libOpenCL.so.1 "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so.1" \&lt;/P&gt;

	&lt;P&gt;--slave "/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.2" opencl-libOpenCL.so.1.2 "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so.1.2"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Just as the error message says, that priority (-2147489036) is out of range. Changing it to -1147489036 seems to avoid the error (though I don't know how to make that change int he .deb file in order to complete the installation :( )&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2014 21:37:00 GMT</pubDate>
    <dc:creator>David_J_3</dc:creator>
    <dc:date>2014-05-27T21:37:00Z</dc:date>
    <item>
      <title>SDK for OpenCL Applications 2014 Beta - Ubuntu Installation Issue</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020506#M3262</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I just downloaded the latest SDK for OpenCL Applications 2014 Beta for Ubuntu, but I'm experiencing an issue that is not allowing me to successfully complete installation of the software. &amp;nbsp;My environment is as follows:&lt;/P&gt;

&lt;P&gt;CPU:&amp;nbsp;Intel Core i7-3612QM (Ivy Bridge)&lt;BR /&gt;
	OS: Ubuntu 14.04 (LTS) x64&lt;BR /&gt;
	OpenCL 2014 Beta SDK:&amp;nbsp;4.0.1.17537 x64&lt;/P&gt;

&lt;P&gt;After unpacking the tgz, I successfully installed the first two packages from the install-cpu.sh file:&amp;nbsp;opencl-1.2-base-4.0.1.17537-1.x86_64.deb and opencl-1.2-devel-4.0.1.17537-1.x86_64.deb. &amp;nbsp;However, the third package (opencl-1.2-intel-cpu-4.0.1.17537-1.x86_64.deb) fails to install with an error message that doesn't provide much insight into what went wrong. &amp;nbsp;Below is the exact command line and output:&lt;/P&gt;

&lt;P&gt;sudo dpkg -i opencl-1.2-intel-cpu-4.0.1.17537-1.x86_64.deb&amp;nbsp;&lt;BR /&gt;
	(Reading database ... 208132 files and directories currently installed.)&lt;BR /&gt;
	Preparing to unpack opencl-1.2-intel-cpu-4.0.1.17537-1.x86_64.deb ...&lt;BR /&gt;
	/var/lib/dpkg/info/opencl-intel-cpu.prerm: 1: /var/lib/dpkg/info/opencl-intel-cpu.prerm: /usr/sbin/update-alternatives: not found&lt;BR /&gt;
	Unpacking opencl-intel-cpu (1.2-4.0.1.17537) over (1.2-4.0.1.17537) ...&lt;BR /&gt;
	Setting up opencl-intel-cpu (1.2-4.0.1.17537) ...&lt;BR /&gt;
	/var/lib/dpkg/info/opencl-intel-cpu.postinst: 2: /var/lib/dpkg/info/opencl-intel-cpu.postinst: [[: not found&lt;BR /&gt;
	/var/lib/dpkg/info/opencl-intel-cpu.postinst: 18: /var/lib/dpkg/info/opencl-intel-cpu.postinst: /usr/sbin/update-alternatives: not found&lt;BR /&gt;
	dpkg: error processing package opencl-intel-cpu (--install):&lt;BR /&gt;
	&amp;nbsp;subprocess installed post-installation script returned error exit status 127&lt;BR /&gt;
	Errors were encountered while processing:&lt;BR /&gt;
	&amp;nbsp;opencl-intel-cpu&lt;/P&gt;

&lt;P&gt;Any help would be most appreciated!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Brandon&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 21:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020506#M3262</guid>
      <dc:creator>bmeardon</dc:creator>
      <dc:date>2014-05-21T21:51:00Z</dc:date>
    </item>
    <item>
      <title>I'm getting a similar problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020507#M3263</link>
      <description>&lt;P&gt;I'm getting a similar problem on an Elitebook 2540p running LXDE wheezy&lt;/P&gt;

&lt;P&gt;Error&lt;/P&gt;

&lt;P&gt;In case of failure, refer to release notes at &lt;A href="https://software.intel.com/en-us/vcsource/tools/opencl-sdk" target="_blank"&gt;https://software.intel.com/en-us/vcsource/tools/opencl-sdk&lt;/A&gt;&lt;BR /&gt;
	Selecting previously unselected package opencl-base.&lt;BR /&gt;
	(Reading database ... 177420 files and directories currently installed.)&lt;BR /&gt;
	Unpacking opencl-base (from opencl-1.2-base-4.4.0.117-1.x86_64.deb) ...&lt;BR /&gt;
	Selecting previously unselected package opencl-intel-cpu.&lt;BR /&gt;
	Unpacking opencl-intel-cpu (from opencl-1.2-intel-cpu-4.4.0.117-1.x86_64.deb) ...&lt;BR /&gt;
	Selecting previously unselected package opencl-devel.&lt;BR /&gt;
	Unpacking opencl-devel (from opencl-1.2-devel-4.4.0.117-1.x86_64.deb) ...&lt;BR /&gt;
	Selecting previously unselected package opencl-intel-devel.&lt;BR /&gt;
	Unpacking opencl-intel-devel (from opencl-1.2-intel-devel-4.4.0.117-1.x86_64.deb) ...&lt;BR /&gt;
	Selecting previously unselected package opencl-intel-devel-android.&lt;BR /&gt;
	Unpacking opencl-intel-devel-android (from opencl-1.2-intel-devel-android-4.4.0.117-1.x86_64.deb) ...&lt;BR /&gt;
	Setting up opencl-base (1.2-4.4.0.117) ...&lt;BR /&gt;
	/var/lib/dpkg/info/opencl-base.postinst: 2: /var/lib/dpkg/info/opencl-base.postinst: [[: not found&lt;BR /&gt;
	update-alternatives: warning: priority is out of range: -2147489036 clamped to -2147483648&lt;BR /&gt;
	update-alternatives: using /opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so to provide /usr/lib/x86_64-linux-gnu/libOpenCL.so (opencl-libOpenCL.so) in auto mode&lt;BR /&gt;
	update-alternatives: error: error creating symbolic link `/usr/lib/x86_64-linux-gnu/libOpenCL.so.dpkg-tmp': No such file or directory&lt;BR /&gt;
	dpkg: error processing opencl-base (--install):&lt;BR /&gt;
	&amp;nbsp;subprocess installed post-installation script returned error exit status 2&lt;BR /&gt;
	dpkg: dependency problems prevent configuration of opencl-intel-cpu:&lt;BR /&gt;
	&amp;nbsp;opencl-intel-cpu depends on opencl-base (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-base is not configured yet.&lt;/P&gt;

&lt;P&gt;dpkg: error processing opencl-intel-cpu (--install):&lt;BR /&gt;
	&amp;nbsp;dependency problems - leaving unconfigured&lt;BR /&gt;
	dpkg: dependency problems prevent configuration of opencl-devel:&lt;BR /&gt;
	&amp;nbsp;opencl-devel depends on opencl-base (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-base is not configured yet.&lt;/P&gt;

&lt;P&gt;dpkg: error processing opencl-devel (--install):&lt;BR /&gt;
	&amp;nbsp;dependency problems - leaving unconfigured&lt;BR /&gt;
	dpkg: dependency problems prevent configuration of opencl-intel-devel:&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel depends on opencl-base (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-base is not configured yet.&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel depends on opencl-intel-cpu (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-intel-cpu is not configured yet.&lt;/P&gt;

&lt;P&gt;dpkg: error processing opencl-intel-devel (--install):&lt;BR /&gt;
	&amp;nbsp;dependency problems - leaving unconfigured&lt;BR /&gt;
	dpkg: dependency problems prevent configuration of opencl-intel-devel-android:&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel-android depends on opencl-base (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-base is not configured yet.&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel-android depends on opencl-intel-cpu (&amp;gt;= 1.2-4.4.0.117); however:&lt;BR /&gt;
	&amp;nbsp; Package opencl-intel-cpu is not configured yet.&lt;/P&gt;

&lt;P&gt;dpkg: error processing opencl-intel-devel-android (--install):&lt;BR /&gt;
	&amp;nbsp;dependency problems - leaving unconfigured&lt;BR /&gt;
	Errors were encountered while processing:&lt;BR /&gt;
	&amp;nbsp;opencl-base&lt;BR /&gt;
	&amp;nbsp;opencl-intel-cpu&lt;BR /&gt;
	&amp;nbsp;opencl-devel&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel&lt;BR /&gt;
	&amp;nbsp;opencl-intel-devel-android&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 04:23:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020507#M3263</guid>
      <dc:creator>john_l_3</dc:creator>
      <dc:date>2014-05-27T04:23:58Z</dc:date>
    </item>
    <item>
      <title>I had a chance over the</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020508#M3264</link>
      <description>&lt;P&gt;I had a chance over the weekend to revisit my issue and as it turns out resolve it myself. &amp;nbsp;After having a closer look at the dpkg output, I noticed that one of those lines was complaining about the post install script not being able to find /usr/sbin/update-alternatives, which on my system is located at /usr/bin/update-alternatives and I had no symbolic link in /usr/sbin to it. &amp;nbsp;Simply adding the appropriate symbolic link in /usr/sbin fixed my issue and all seems to be running fine.&lt;/P&gt;

&lt;P&gt;However, I don't believe this is a fix to John I's issue - as I didn't see any dpkg output indicating an issue with finding update-alternatives.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Brandon&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 13:39:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020508#M3264</guid>
      <dc:creator>bmeardon</dc:creator>
      <dc:date>2014-05-27T13:39:24Z</dc:date>
    </item>
    <item>
      <title>I have the exact same problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020509#M3265</link>
      <description>&lt;P&gt;I have the exact same problem as John. The same error... At this time, I cannot afford to do a clean system install also.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 13:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020509#M3265</guid>
      <dc:creator>Nuno_B_</dc:creator>
      <dc:date>2014-05-27T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Hi John and Nuno,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020510#M3266</link>
      <description>Hi John and Nuno,

What is the version of Ubuntu that you're using?
We don't observe this issue on officialy supported version - 12.04.

Thanks,
Yuri</description>
      <pubDate>Tue, 27 May 2014 14:35:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020510#M3266</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-05-27T14:35:54Z</dc:date>
    </item>
    <item>
      <title>This appears to be a bug in</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020511#M3267</link>
      <description>&lt;P&gt;This appears to be a bug in the .deb installation scripts. &amp;nbsp;Specifically, if I look into the extracted file /var/lib/dpkg/info/opencl-base.postinst, I see this line:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;update-alternatives \&lt;/P&gt;

	&lt;P&gt;--install "/usr/lib/x86_64-linux-gnu/libOpenCL.so" opencl-libOpenCL.so "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so" -2147489036 \&lt;/P&gt;

	&lt;P&gt;--slave "/usr/lib/x86_64-linux-gnu/libOpenCL.so.1" opencl-libOpenCL.so.1 "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so.1" \&lt;/P&gt;

	&lt;P&gt;--slave "/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.2" opencl-libOpenCL.so.1.2 "/opt/intel/opencl-1.2-4.4.0.117/lib64/libOpenCL.so.1.2"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Just as the error message says, that priority (-2147489036) is out of range. Changing it to -1147489036 seems to avoid the error (though I don't know how to make that change int he .deb file in order to complete the installation :( )&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 21:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020511#M3267</guid>
      <dc:creator>David_J_3</dc:creator>
      <dc:date>2014-05-27T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Hello Intel staff and fellow</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020512#M3268</link>
      <description>&lt;P&gt;Hello Intel staff and fellow users,&lt;/P&gt;

&lt;P&gt;I wish to express my feedback regarding Ubuntu packages for&amp;nbsp;&lt;EM&gt;OpenCL SDK 2014&lt;/EM&gt;, which we are using targeting&amp;nbsp;&lt;EM&gt;Xeon Phi&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;Long story short, they are BROKEN. Seems they were just ported using "alien" from RPM packages, but there are couple of caveats:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;On Ubuntu path for update-alternatives is&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;/usr/bin/update-alternatives&lt;/SPAN&gt;&amp;nbsp;while your DEB postinst and postrm scripts refer to&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;/usr/sbin/update-alternatives&lt;/SPAN&gt;&amp;nbsp;which is Fedora/RedHat specific, I presume you may just refer w/o full path as /usr/bin and /usr/sbin will be in PATH for these scripts anyway, this will make scripts portable.&lt;BR /&gt;
		&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;All calls to update-alternatives use priority of -2147489036 while minimum allowed for Ubuntu is INT_MIN = -&lt;SPAN style="font-weight: 700;"&gt;2147483648&lt;/SPAN&gt;. Frankly I dunno where -&lt;SPAN style="font-weight: 700;"&gt;2147489036&lt;/SPAN&gt;&amp;nbsp;came from :&amp;gt;&lt;BR /&gt;
		&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;Ubuntu uses Dash for non-interactive scripts which does not support several "bashisms" (https://wiki.ubuntu.com/DashAsBinSh#A.5B.5B) used in your DEB scripts, i.e.:
		&lt;OL&gt;
			&lt;LI&gt;&lt;SPAN style="font-weight: 700;"&gt;opencl-1.2-base-4.4.0.117-1.x86_64.deb/DEBIAN/postinst&lt;/SPAN&gt;
				&lt;PRE class="brush:bash;"&gt;[[ -e etc/OpenCL/ ]] &amp;amp; chmod -R 755 /etc/OpenCL&lt;/PRE&gt;
				should become:

				&lt;PRE class="brush:bash;"&gt;[ -e etc/OpenCL/ ] &amp;amp;&amp;amp; chmod -R 755 /etc/OpenCL&lt;/PRE&gt;
				Please note single &amp;amp; which is also obvious error in script.&lt;/LI&gt;
			&lt;LI&gt;&lt;SPAN style="font-weight: 700;"&gt;opencl-1.2-intel-cpu-4.4.0.117-1.x86_64.deb/DEBIAN/postinst&lt;/SPAN&gt;
				&lt;PRE class="brush:bash;"&gt;if [[ "/opt/intel/opencl-1.2-4.4.0.117" != "/opt/intel/opencl-1.2-4.4.0.117" ]]; then&lt;/PRE&gt;
				&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;This is "bashism" and it is always FALSE! This if clause should be completely removed as it doesn't make sense.&lt;/SPAN&gt;&lt;/LI&gt;
		&lt;/OL&gt;
	&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I would appreciate if you fix these bugs. If there is any issue tracker I would be much appreciated too.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 11:44:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020512#M3268</guid>
      <dc:creator>Adam_Strzelecki</dc:creator>
      <dc:date>2014-05-28T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Dear Adam, </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020513#M3269</link>
      <description>&lt;P&gt;Dear Adam,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;did you manage to implement these fixes on your own Ubuntu-distro to get OpenCL working? I'm currently experiencing problems similar to the ones described in this thread. I have found several guides regarding fixes, but these all apply to the previous OpenCL-package which isn't up for download anymore.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 08:01:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020513#M3269</guid>
      <dc:creator>Bojan_B_</dc:creator>
      <dc:date>2014-07-02T08:01:32Z</dc:date>
    </item>
    <item>
      <title>Hello All,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020514#M3270</link>
      <description>Hello All,

We plan to refactor Ubuntu installation package to include fixes for mentioned issues and add support for Ubuntu 14.04.

Thanks,
Yuri</description>
      <pubDate>Tue, 08 Jul 2014 10:12:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020514#M3270</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-07-08T10:12:40Z</dc:date>
    </item>
    <item>
      <title>I have fixed some bugs and re</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020515#M3271</link>
      <description>&lt;P&gt;I have fixed some bugs and re-packaged and uploaded these debs on my [blog](http://xfanzone.me/fixing-opencl-deb.html).&lt;/P&gt;

&lt;P&gt;Now it is working.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:00:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SDK-for-OpenCL-Applications-2014-Beta-Ubuntu-Installation-Issue/m-p/1020515#M3271</guid>
      <dc:creator>Feng_X_</dc:creator>
      <dc:date>2014-07-11T15:00:37Z</dc:date>
    </item>
  </channel>
</rss>

