{"id":2241,"date":"2022-08-30T15:23:13","date_gmt":"2022-08-30T15:23:13","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/how-to-develop-opencl-code-for-both-ati-and-nvidia-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:23:13","modified_gmt":"2022-08-30T15:23:13","slug":"how-to-develop-opencl-code-for-both-ati-and-nvidia-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-develop-opencl-code-for-both-ati-and-nvidia-collection-of-common-programming-errors\/","title":{"rendered":"How to develop OpenCL code for both ATI and NVIDIA?-Collection of common programming errors"},"content":{"rendered":"<p>I want to write a raytracer and GPGPU seems like a very good way to accelerate it. The problem is that although OpenCL is a Khronos standard, it seems Intel, NVIDIA and ATI have all released their own SDK.<\/p>\n<p>Although it seems most people around here wonder if their kernel code runs on all platforms, I&#8217;m wondering how to compile an actual C program that makes use of the OpenCL API for all platforms.<\/p>\n<ol>\n<li>\n<p>Unfortunately, the only way to be sure to have no bug on all platforms is to test your kernel on all platforms ( and on all generation of GPU or CPU &#8230;), because sometimes, the NVIDIA ptx compiler crash when the AMD compiler works. And after you have to optimize your OpenCL code for each GPU and CPU architectures &#8230; Enjoy OpenCL \ud83d\ude09<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-05 09:31:45. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I want to write a raytracer and GPGPU seems like a very good way to accelerate it. The problem is that although OpenCL is a Khronos standard, it seems Intel, NVIDIA and ATI have all released their own SDK. Although it seems most people around here wonder if their kernel code runs on all platforms, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2241","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2241"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2241\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}