Results 1 to 3 of 3

Thread: Adding support for a new hardware in OpenCL

Threaded View

  1. #1
    Junior Member
    Join Date
    Aug 2012

    Adding support for a new hardware in OpenCL


    As of my project, I have been assigned to add support for a new hardware device in OpenCL Software stack, which has two major components :
    1. Host Runtime: to provide OpenCL host platform API and runtime API.
    2. OpenCL Compiler: to translate OpenCL kernel c code into a hardware specific ISA.

    Among these two components, i started with the first and explored how to do this.
    I found that, in order to add a new hardware device in OpenCL stack,

    i. first i need to build an OpenCL ICD loader which will load shared library ( whose name is on first line of .icd file. Is that enough to find new hardware device in OpenCL?
    ii. secondly, i have to modify CL/cl.h file by adding a new device type say for example XYX such as
    #define CL_DEVICE_TYPE_XYZ (1 << 5)
    and then regenerate file. Since I did not found source code for library, so how should I get new build file?

    Are these two requirements correct? What else I need to have in order to add support for a new Hardware device in OpenCL? Note: In this post, I am only concerned with my first component.

    Any advise and helpful links will be appreciated.

    Thanks and Regards,
    Last edited by Gopal_HC; 09-26-2013 at 07:10 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean