cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

chevydevil
Adept II

warning: ignore unrecognized OpenCL extension cl_khr_fp64

Hello.

I'm working under Ubuntu 12.04 with AMD APP 2.7 on a Radeon 5870 and a Intel Core I7 860. Both devices support the cl_khr_fp64 extension according to the opencl extension query. But when I try to use:

#pragma OPENCL EXTENSION cl_khr_fp64 : enable

in my kernel I got the mentioned warning. cl_amd_fp64 works though. Whats wrong?

Thanks.

0 Likes
1 Solution
settle
Challenger

This is a bug and has been reported, see http://devgurus.amd.com/message/1283287#1283287.  In the meantime, consider writing your code like this:

#if defined(cl_amd_fp64) || defined(cl_khr_fp64)

#if defined(cl_amd_fp64)

#pragma OPENCL EXTENSION cl_amd_fp64 : enable

#elif defined(cl_khr_fp64)

#pragma OPENCL EXTENSION cl_khr_fp64 : enable

#endif

// function declarations/definitions using double precision floating-point arithmetic

#endif

Hope that helps a little until the bug is fixed.

View solution in original post

0 Likes
1 Reply
settle
Challenger

This is a bug and has been reported, see http://devgurus.amd.com/message/1283287#1283287.  In the meantime, consider writing your code like this:

#if defined(cl_amd_fp64) || defined(cl_khr_fp64)

#if defined(cl_amd_fp64)

#pragma OPENCL EXTENSION cl_amd_fp64 : enable

#elif defined(cl_khr_fp64)

#pragma OPENCL EXTENSION cl_khr_fp64 : enable

#endif

// function declarations/definitions using double precision floating-point arithmetic

#endif

Hope that helps a little until the bug is fixed.

0 Likes