{"id":1366,"date":"2015-04-14T15:31:43","date_gmt":"2015-04-14T19:31:43","guid":{"rendered":"http:\/\/codinggorilla.domemtech.com\/?p=1366"},"modified":"2015-04-19T15:37:36","modified_gmt":"2015-04-19T19:37:36","slug":"an-opencl-net-program-for-device-information","status":"publish","type":"post","link":"http:\/\/165.227.223.229\/index.php\/2015\/04\/14\/an-opencl-net-program-for-device-information\/","title":{"rendered":"An OpenCL.NET Program for Device Information"},"content":{"rendered":"<p>There was an interesting question on <a href=\"http:\/\/www.gamedev.net\/topic\/667575-display-gpu-info-in-c\/\" target=\"_blank\">Gamedev.net<\/a> today asking about whether there is an API in C# for querying information about the GPUs installed. Apparently, <a href=\"http:\/\/www.techpowerup.com\/gpuz\/\" target=\"_blank\">GPU-Z<\/a>\u00c2\u00a0uses the <a href=\"http:\/\/www.nvidia.com\/object\/cuda_home_new.html\" target=\"_blank\">CUDA<\/a> API to get information about an NVIDIA GPU, and\u00c2\u00a0<a href=\"http:\/\/developer.amd.com\/tools-and-sdks\/graphics-development\/gpuperfapi\/\" target=\"_blank\">GPUPerfAPI<\/a> for the AMD GPU. However, a good alternative to those APIs is <a href=\"https:\/\/www.khronos.org\/opencl\/\" target=\"_blank\">OpenCL<\/a>, a platform independent framework to gather information about the computing devices in a PC. For C#,\u00c2\u00a0<a href=\"https:\/\/openclnet.codeplex.com\/\" target=\"_blank\">OpenCL.NET<\/a>\u00c2\u00a0works quite well.<\/p>\n<p>The following program queries and outputs the device information from <a href=\"https:\/\/www.khronos.org\/opencl\/\" target=\"_blank\">OpenCL<\/a>. It comes in handy when you need to know some basic properties of the computer you are using when you don&#8217;t want to use <a href=\"http:\/\/www.techpowerup.com\/gpuz\/\" target=\"_blank\">GPU-Z<\/a> or <a href=\"http:\/\/www.cpuid.com\/softwares\/cpu-z.html\" target=\"_blank\">CPU-Z<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>There was an interesting question on Gamedev.net today asking about whether there is an API in C# for querying information about the GPUs installed. Apparently, GPU-Z\u00c2\u00a0uses the CUDA API to get information about an NVIDIA GPU, and\u00c2\u00a0GPUPerfAPI for the AMD GPU. However, a good alternative to those APIs is OpenCL, a platform independent framework to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/165.227.223.229\/index.php\/2015\/04\/14\/an-opencl-net-program-for-device-information\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;An OpenCL.NET Program for Device Information&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts\/1366"}],"collection":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":0,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"wp:attachment":[{"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/165.227.223.229\/index.php\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}