{"id":4036,"date":"2012-01-10T14:29:31","date_gmt":"2012-01-10T13:29:31","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=4036"},"modified":"2012-02-09T23:29:19","modified_gmt":"2012-02-09T22:29:19","slug":"will-2012-be-the-year-when-opencl-adoption-really-takes-off","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=4036","title":{"rendered":"Will 2012 be the year when OpenCL adoption really takes off?"},"content":{"rendered":"<p>From where I sit it seems that the majority of\u00a0scientific GPU work is being done with <a href=\"http:\/\/www.nvidia.com\/object\/cuda_home_new.html\">NVIDIA&#8217;s proprietary CUDA platform<\/a>.\u00a0 All the signs point to the possibility of this changing, however, and I wonder if 2012 will be the year when OpenCL comes of age.\u00a0 Let&#8217;s look at some recent and near future events&#8230;.<\/p>\n<p><strong>Hardware<\/strong><\/p>\n<ul>\n<li>AMD have recently released the AMD Radeon HD 7970, said to be the <a href=\"http:\/\/blogs.amd.com\/play\/2011\/12\/21\/764-days-as-graphics-performance-champion-%E2%80%93-and-counting\/\">fastest single- GPU graphics card on the planet<\/a>.\u00a0 This new card supports both Microsoft&#8217;s DirectCompute along with OpenCL and is much faster than the previous generation of AMD card (<a href=\"http:\/\/www.hardwarecanucks.com\/forum\/hardware-canucks-reviews\/49646-amd-radeon-hd-7970-3gb-review-22.html\">see here for compute benchmarks<\/a>) as well as being faster than NVIDIAs current top of the line GTX 580.<\/li>\n<li>Intel will release their next generation of CPUs &#8211; <a href=\"http:\/\/en.wikipedia.org\/wiki\/Ivy_Bridge_%28microarchitecture%29\">Ivy Bridge<\/a> &#8211; which will include an increased number of built in GPU cores which should be OpenCL compatible.\u00a0 Although the current <a href=\"http:\/\/software.intel.com\/en-us\/articles\/sandy-bridge\/\">Sandy Bridge<\/a> processors also contain GPU cores, it is not currently possible to target them with<a href=\"http:\/\/software.intel.com\/en-us\/articles\/vcsource-tools-opencl-sdk\/\"> Intel&#8217;s OpenCL implementation<\/a> (version 1.5 is strictly for the CPU cores).\u00a0 I would be very surprised if Intel didn&#8217;t update their OpenCL implementation to be able to target the GPUs in Ivy Bridge this year.<\/li>\n<li>AMDs latest <a href=\"http:\/\/www.amd.com\/us\/products\/technologies\/fusion\/Pages\/fusion.aspx\">Fusion processors<\/a> also contain OpenCL compatible GPU cores directly integrated with the CPU which programmers can exploit using <a href=\"http:\/\/developer.amd.com\/sdks\/AMDAPPSDK\/downloads\/Pages\/default.aspx\">AMD&#8217;s Accelerated Parallel Processing (APP) SDK<\/a>.<\/li>\n<\/ul>\n<p>The practical upshot of the above is that if a software vendor uses OpenCL to accelerate their product then it could potentially benefit more of their customers than if they used CUDA.\u00a0 Furthermore, if you want your code to run on the fastest GPU around then OpenCL is the way to go right now.<\/p>\n<p><strong>Software<\/strong><\/p>\n<p>Having the latest, fastest hardware is pointless if the software you run can&#8217;t take advantage of it.\u00a0 Over the last 12 months I have had the opportunity to speak to developers of various commerical scientific and mathematical software products which support GPU acceleration.\u00a0 With the exception of <a href=\"http:\/\/www.wolfram.com\/mathematica\/new-in-8\/cuda-and-opencl-support\/\">Wolfram&#8217;s Mathematica<\/a>, all of them only supported CUDA.\u00a0 When I asked why they don&#8217;t support OpenCL, the response of most of these developers could be paraphrased as &#8216;<em>The mathematical libraries and vendor support for CUDA are far more developed than those of OpenCL so CUDA support is significantly easier to integerate into our product.<\/em>&#8216;\u00a0 Despite this, however, OpenCL support is definitely growing in the world of mathematical and scientific software.<\/p>\n<p><strong>OpenCL in Mathematics software and libraries<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/viennacl.sourceforge.net\/\">ViennaCL<\/a>, a GPU-accelerated C++ open-source\u00a0linear algebra library, was updated to version 1.2.0 on December 31st (just missing the deadline for <a href=\"https:\/\/www.walkingrandomly.com\/?p=4014\">December&#8217;s Month of Math Software<\/a>). \u00a0Roughly speaking, ViennaCL is a mixture of Boost.ublas (high-level\u00a0interface) and MAGMA (GPU-support), yet based on OpenCL rather than\u00a0CUDA.<\/li>\n<li>AccelerEyes released a new major version of their GPU accelerated MATLAB toolbox, Jacket,<a href=\"http:\/\/forums.accelereyes.com\/forums\/viewtopic.php?f=4&amp;t=2717&amp;p=8496\"> in late December 2011<\/a>.\u00a0 The big news as far as this article is concerned is that it includes support for OpenCL; something that is currently missing from The Mathworks&#8217; Parallel Computing Toolbox.<\/li>\n<li>Not content with bringing OpenCL support to MATLAB, AccelerEyes also realesed <a href=\"http:\/\/www.accelereyes.com\/products\/arrayfire\">ArrayFire<\/a>&#8212; a <strong>free<\/strong> (for the basic version at least) library for C, C++, Fortran, and Python that includes support for both CUDA and OpenCL.<\/li>\n<li>Although it&#8217;s not new news, it&#8217;s worth bearing in mind that Mathematica has <a href=\"http:\/\/www.wolfram.com\/mathematica\/new-in-8\/cuda-and-opencl-support\/\">supported OpenCL<\/a> for a while now&#8211; since the relase of version 8 back in\u00a0 November 2010.<\/li>\n<\/ul>\n<p><strong>Finite Element Modelling with Abaqus<\/strong><\/p>\n<ul>\n<li>Back in May 2011, Version 6.11 of the finite element modelling package, <a href=\"http:\/\/www.simulia.com\/products\/abaqus_fea.html\">Abaqus<\/a>, was released and it included support for NVIDIA cards (<a href=\"http:\/\/www.nvidia.com\/object\/tesla-abaqus-accelerations.html\">see here for NVIDIA&#8217;s page on it<\/a>). \u00a0In September, GPU support in Abaqus was broadened to include AMD Hardware with an OpenCL compliant release (<a href=\"http:\/\/develop3d.com\/blog\/2011\/09\/amd-gets-some-gpu-compute-action-with-opencl-compliant-release-of-abaqus-6.\">see here<\/a>).<\/li>\n<\/ul>\n<p><strong>Other projects<\/strong><\/p>\n<ul>\n<li>In late December 2011, the first alpha version of <a href=\"http:\/\/code.google.com\/p\/fortrancl\/\">FortranCL<\/a>, an OpenCL interface for Fortran 90, was released.<\/li>\n<\/ul>\n<p>What do you think? \u00a0Will OpenCL start to take the lead in scientific and mathematical software applications this year or will CUDA continue to dominate? \u00a0Are there any new OpenCL projects that I&#8217;ve missed?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From where I sit it seems that the majority of\u00a0scientific GPU work is being done with NVIDIA&#8217;s proprietary CUDA platform.\u00a0 All the signs point to the possibility of this changing, however, and I wonder if 2012 will be the year when OpenCL comes of age.\u00a0 Let&#8217;s look at some recent and near future events&#8230;. Hardware [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[51,4,50],"tags":[],"class_list":["post-4036","post","type-post","status-publish","format-standard","hentry","category-gpu","category-math-software","category-opencl"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p3swhs-136","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/4036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4036"}],"version-history":[{"count":15,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/4036\/revisions"}],"predecessor-version":[{"id":4165,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/4036\/revisions\/4165"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}