Results 1 to 4 of 4

Thread: How to get the number of cores per computing unit

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    6

    How to get the number of cores per computing unit

    Hello,

    I want to know the number of core per unit to limit batch size.
    Having the number of computing unit is quite simple, but i found nothing on the number of cores.
    I know that it is possible to know it in cuda but how to do that in openCL?

    Sincerely

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

    Re: How to get the number of cores per computing unit

    Can you describe what you mean by "batch size"?

    As for "core", it is a marketing term with no clear definition from an engineering viewpoint. What is called a "core" on one device may not have any relationship with what is called "core" on another device. That's why the term is avoided in the OpenCL specification.
    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
    Feb 2012
    Posts
    6

    Re: How to get the number of cores per computing unit

    I mean by batch size the globalWorkSize.
    For exemple when you have an eavy task to run (eg : globalWorkSize = 1 000 000 vertices to process), you can execute it by running the kernel in a loop with batchSize < globalWorkSize with an offset given to the kernel to avoid the kernel being killed when a display is attached to your graphic card.

    I mean by core the number of processor unit by computing unit. In cuda it refers to cuda cores.

    Sincerelly

  4. #4

    Re: How to get the number of cores per computing unit

    If by batch size you mean the warp size in cuda devices or the wavefront size in ati/amd devices, you can typically get them by looking at the CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE property of a (compiled) kernel for the device.

Similar Threads

  1. Device info: maximum number of workitems per compute unit
    By Bilog in forum Suggestions for next release
    Replies: 0
    Last Post: 04-30-2012, 01:35 AM
  2. GLSL Unit - A Unit testing framework for Shaders
    By LPCRoy in forum WebGL - General
    Replies: 0
    Last Post: 11-03-2011, 03:14 PM

Posting Permissions

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