cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Alexium
Adept I

double sqrt function - supported/available for RV770?

The clBuildProgram sais “Creating kernel failed!” with no specific error message whenever there's sqrt(), or length(), or normalize() function of double argument. But double functions are part of OCL 1.0 specs and thus shold be supported for RV770. Please advise.

0 Likes
15 Replies
Alexium
Adept I

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Any ideas? I really need double precision...

0 Likes
himanshu_gautam
Grandmaster

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Alexium,

Please a try a fresh installation.Also furnish the following details so that we can try to reproduce the issue at out side:

Operating system,CPU.

post the code snippet where you tried to enable the extension

0 Likes
Alexium
Adept I

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Originally posted by: himanshu.gautam Alexium,



Please a try a fresh installation.Also furnish the following details so that we can try to reproduce the issue at out side: Operating system,CPU.

post the code snippet where you tried to enable the extension


Do you advise fresh installation of SDK, drivers or both?

I have a 10.10 APP Edition driver, ATI 4850 card, Intel Q6600 CPU (have no idea why would you wonder) and Win 7 x32 OS. The code attached generates an error both in clBuildProgram and SKA.

#pragma OPENCL EXTENSION cl_amd_fp64 : enable __kernel void k(void) { }

0 Likes
Alexium
Adept I

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Updated the OpenCL driver to 10.11. The problem remains.

0 Likes
sir_um
Journeyman III

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Are you getting this when you try to complie and run your code, or just in the stream kernel analyzer?

Because I get that same message in the kernel analyzer, but my double precision code runs fine (on Radeon 5870). Despite fresh installs of the latest, the kernel analyzer (v1.6) doesn't want to recognize above v10.7. If so, it may just be a kernel analyzer thing.

Also, you might try: (taken from the OpenCL Spec. PDF)

#pragma OPENCL EXTENSION cl_khr_fp64 : enable


It doesn't work for me but, you never know...

-Chris

0 Likes
Alexium
Adept I

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Are you getting this when you try to complie and run your code


Both is SKA and when my program calls clBuildProgram.

I think no _khr_ extensions are supported on GPU prior to Evergreen. No, it doesn't work. But thanks for concerning yourself with my problem. I really don't know what to try next.

0 Likes
himanshu_gautam
Grandmaster

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Does your clInfo displays this extension.

Are you able to enable any other extension?

Are you able to run without any extension.

Please post the clInfo output.

Also try MatrixMulDouble sample.

0 Likes
Alexium
Adept I

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

Also try MatrixMulDouble sample.


 

Now it works. SKA still reports an error, but the program works. Must have something to do with me reinstalling ocl driver yesterday. So basically, fp64 works fine.

Have another problem now : apparently, there’s no double precision sqrt function available, despite the fact double math functions are part of OCL 1.0 spec which AMD claims to be supported fully… 

To be more precise – I’m getting “Creating kernel failed!” message with no specific error. The message disappears and the kernel compiles just fine when I comment sqrt out.

 

 

0 Likes
himanshu_gautam
Grandmaster

cl_amd_fp64: can't enable all OpenCL extensions or unrecognized OpenCL extension

alexium,

Are you saying your program crashes giving an error creating kernel failed.

Post the code.

0 Likes