Results 1 to 5 of 5

Thread: Lack of double Support in C Types

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Location
    Toronto, Ontario, Canada
    Posts
    16

    Lack of double Support in C Types

    I have been reading the released OpenCL specification. I have noticed that double is a reserved type, but not supported by the draft specification. In particular, in section 6.1.4 it is listed as reserved, however it is not listed in 6.1.1 as a basic scalar type.

    Although not all GPUs support double precision floating point operations, I believe that double should be supported. Perhaps the standard can force some type of emulation mode be supported, or return an error if double is not supported by the OpenCL device. Querying device capabilities for double is also an option.

    Please let me know when double support is planned for OpenCL, or if the standard may be revised to include it in this iteration.

    Thanks,

    AJ

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: Lack of double Support in C Types

    Double support is an optional extension. Read section 9.3.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    Dec 2008
    Location
    Vancouver, Canada
    Posts
    8

    Re: Lack of double Support in C Types

    I was surprised that doubles aren't defined as an image channel data type, even in the fp64 extension. Especially since a number of image formats are completely optional. I'm not clear yet how useful the current sample filters are for scientific computation, but the addressing modes and dimensionality offered by image objects certainly are.
    Ralph Giles
    Artifex Software, Inc.

  4. #4
    Member
    Join Date
    Sep 2003
    Location
    Silicon Valley
    Posts
    57

    Re: Lack of double Support in C Types

    Quote Originally Posted by rillian
    I was surprised that doubles aren't defined as an image channel data type, even in the fp64 extension. Especially since a number of image formats are completely optional. I'm not clear yet how useful the current sample filters are for scientific computation, but the addressing modes and dimensionality offered by image objects certainly are.
    The data types and filters supported correspond with what current GPUs actually can accelerate. I would imagine OpenCL will get DP images at about the same time OpenGL gets DP textures, for the same reason.
    Jon Leech
    EGL & OpenGL Specification Editor / OpenGL ARB Ecosystem TSG Chair / Khronos API Registrar

  5. #5
    Junior Member
    Join Date
    Dec 2008
    Location
    Vancouver, Canada
    Posts
    8

    Re: Lack of double Support in C Types

    Ah. Thanks for explaining the process.
    Ralph Giles
    Artifex Software, Inc.

Similar Threads

  1. Is it support Float Data Types in OpenMax DL?
    By gaurang2984 in forum OpenMAX DL
    Replies: 1
    Last Post: 03-24-2010, 06:05 AM
  2. Is it support Float Data Types in OpenMax DL?
    By gaurang2984 in forum OpenMAX DL
    Replies: 1
    Last Post: 03-24-2010, 03:53 AM

Posting Permissions

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