cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

pauldoo
Journeyman III

"undefined symbol: __floor_f64" when I use floor()

When I use floor() in my OpenCL code I get an error at runtime:

./test: symbol lookup error: /tmp/OCLR5QCwM.so: undefined symbol: __floor_f64

I am using ati-stream-sdk-v2.0-beta2-lnx64 and my code is here:

http://pauldoo.dyndns.org/svn/OpenCL/WarpOpenCL.cl?p=560

0 Likes
2 Replies

Double support is currently not supported in our OpenCL implementation. Please check that the double extension cl_khr_fp64 is valid on the device you wish to compile to before using double's.
0 Likes
omkaranathan
Adept I

You are calling floor funtion on double datatype, and any application which wants to use double, need to include the #pragma OPENCL EXTENSION cl_khr_fp64 : enable directive before any double precision data type is declared in the kernel code. And also the runtime should be supporting it.

0 Likes