Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Predefined Macros: device type

  1. #11
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Re: Predefined Macros: device type

    Quote Originally Posted by david.garcia
    Considering that a device can be simultaneously a GPU, CPU, and accelerator (notice that cl_device_type is a bitfield), then multiple of these macros may be enabled at once?
    I‘ve been thinking about this issue and it dawned on me that predefined macros would not be as good as a get_device_type() function that can dynamically change as the kernel is shifted around basic hardware architectures during execution.

    I‘ve also been wondering how would one determine the preferred_work_group_multiple for a device like you describe? The least common multiple of the preferred_work_group_multiple for each subdevice? Better hope they‘re not all distinct prime numbers

  2. #12
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Re: Predefined Macros: device type

    If a kernel is allowed to be shifted between different basic hardware architectures then it would be helpful to provide a function that hints/dictates which parts of the kernel code should be executed where, for example via a set_device_type() function.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. OpenCL system, device type
    By giridhart in forum OpenCL
    Replies: 2
    Last Post: 07-30-2010, 03:24 AM
  2. Discrepancy between XAAudioInputDescriptor elements & macros
    By rajv in forum OpenMAX AL - feedback
    Replies: 1
    Last Post: 03-27-2009, 01:43 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
  •