Results 1 to 2 of 2

Thread: Enabling double precision

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    12

    Enabling double precision

    Hi there,

    I'm trying to enable double precision through my kernels however I get an error thrown when I include the extension enabling pragma:
    #pragma OPENCL EXTENSION cl_khr_fp64 : enable

    I'm also using the C++ bindings, the error thrown is -45 during the kernel jit compilation but I have no idea what that error number actually refers to.

    Without this pragma the kernel code compiles/runs without any issues,

    What needs to be done to enable double precision?

    Thanks in advance.

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    12

    Re: Enabling double precision

    Ah apologies, just realised my gfx card does not support cuda model 1.3 for double precision (using a 8800gts).

    On a related to note, is there an easy way to get meaning ful error strings from the error numbers thrown by the c++ bindings?

Similar Threads

  1. double precision math builtins on OSX
    By jhludwig in forum OpenCL
    Replies: 4
    Last Post: 05-02-2011, 03:33 PM
  2. How can I simulate double precision?
    By Rui in forum OpenCL
    Replies: 2
    Last Post: 05-28-2010, 07:11 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
  •