First, download the SDK. At the time of writing, the newest version is version 2.8.1.0. For 32 bit platforms:
$ tar -xzvf AMD-APP-SDK-v2.8*-lnx*.tgz
$ sudo ./Install-AMD-APP.sh
If you are trying to get some test scripts running on Ubuntu 12.10 and you can't get the Intel SDK to work, here's a handy tip. Go over to the AMD website and download their AMD APP SDK. As long as your CPU supports SSE, the AMD SDK will provide you with OpenCL capabilities on any processor. I was having trouble getting Intel's SDK to work, as well as their open source variant Beignet. Both versions did not reckognize any OpenCL platforms or devices. I am on a Intel Core I5 CPU with Intel HD Graphics 4000 (it's a shame I can't use that on Ubuntu yet, though I am happy to be running sample code now :-)). For your convenience, here are the steps to download and install OpenCL on Ubuntu: First, download the SDK. At the time of writing, the newest version is version 2.8.1.0. For 32 bit platforms: Or for 64 bit platforms: Extract the file you just downloaded and run the installer: $ tar -xzvf AMD-APP-SDK-v2.8*-lnx*.tgz As a final step reboot your computer and then you should be able to run OpenCL applications on Ubuntu. Update August 19th, 2013: updated AMD APP SDK download links from version 2.8 to version 2.8.1.0 and updated recommended download method, thanks to Jacek for pointing that out!
5 Comments
8/18/2013 07:30:42 am
Thanks man, you just saved me hours of headache. The install went flawlessly and contained everything you might need: c++ headers, lots of (compiling) samples and so on.
Reply
webdevelopersdiary
8/18/2013 03:11:20 pm
Hi Jacek, glad to hear it was of help to you :-) Thanks for telling me about the license page before downloading, I updated the article! Please let me know the area, who knows, I travel a lot and might end up catching a beer with you ;-)
Reply
Justus Gadient
9/6/2013 12:54:52 am
Thanks a lot, too, but ... ;-).
Reply
webdevelopersdiary
9/17/2013 10:45:37 pm
Hi Justus,
Justus
9/17/2013 11:56:39 pm
Thanks for your reply..., so I look forward to intels 2014 SDK for Ubuntu ;-) like a child for XMas. Your comment will be posted after it is approved.
Leave a Reply. |
AuthorBlog about random challenges of a web developer. Archives
April 2015
Categories
All
|