Results 1 to 8 of 8

Thread: Basics

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    Basics

    Hi All,

    I am new to OpenCL and I have few doubts

    1) i used clGetDeviceIDs to get the device IDs of type CL_DEVICE_TYPE_CPU
    but did not get any IDs. I tried running on different PCs still got the same result.
    How can i run my OpenCL kernals on my multicore CPU?
    2) Can we call a Kernal inside a Kernal?

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Basics

    1) i used clGetDeviceIDs to get the device IDs of type CL_DEVICE_TYPE_CPU
    but did not get any IDs. I tried running on different PCs still got the same result.
    How can i run my OpenCL kernals on my multicore CPU?
    Install AMD's OpenCL SDK.

    2) Can we call a Kernel inside a Kernel?
    Yes, you can call a kernel function inside a kernel function. The behavior is the same as calling any other function.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    Re: Basics

    Quote Originally Posted by david.garcia
    1) i used clGetDeviceIDs to get the device IDs of type CL_DEVICE_TYPE_CPU
    but did not get any IDs. I tried running on different PCs still got the same result.
    How can i run my OpenCL kernals on my multicore CPU?
    Install AMD's OpenCL SDK.

    My CPU is Intel i5 and other pc is Intel i7 will the AMD's SDK runs for Intel also.

    Thanks for the quick reply

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Basics

    My CPU is Intel i5 and other pc is Intel i7. Will the AMD's SDK runs for Intel also?
    Yes, it will work on any x86/x64 processors.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    Basics few more

    Hi All

    i have few more queries

    1) how to achieve task parallelization? in the specification it is mentioned that Opencl supports task parallelization please provide any links or documents.

    2) how can we optimese a multiply and accumulate operation or just accumulation
    I just tried somthing and i was not getting proper values

    3) How to use image structure supported by opencl? any sample code will be helpful

    4)I there a limit on how many kernels we can write?


    Regards

  6. #6

    Re: Basics

    OpenCL stands for Open Computing Language, and you can read more about it here http://www.khronos.org/opencl/ and herehttp://en.wikipedia.org/wiki/OpenCL

  7. #7
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    kernel limitaion

    Hi,

    Does opencl have any limitation on the amount of code that can go on a kernel?

    Regards

  8. #8
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Basics

    Does opencl have any limitation on the amount of code that can go on a kernel?
    In theory you are only limited by the amount of memory available in your system. In practice I imagine that for very large kernels you may hit other implementation-specific limits.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •