This appears to be a bug in the OpenCL support.
When I add these pragmas to one of the APP SDK samples I see the same errors.
I used the BoxFilter example, because it has code to report compilation errors.
I will report open a bug report.
c:\Users\rouellet.AMD\Documents\AMD APP\samples\opencl\bin\x86_64>BoxFilter.exe
Running SAT version..
Platform 0 : Advanced Micro Devices, Inc.
Platform found : Advanced Micro Devices, Inc.
Selected Platform Vendor : Advanced Micro Devices, Inc.
Device 0 : Capeverde Device ID is 00000000001DF650
BUILD LOG
************************************************
"C:\Users\rouellet.AMD\AppData\Local\Temp\OCLE085.tmp.cl", line 1: error:
can't enable all OpenCL extensions or unrecognized OpenCL extension
#pragma OPENCL EXTENSION cl_amd_vec3 : enable
^
"C:\Users\rouellet.AMD\AppData\Local\Temp\OCLE085.tmp.cl", line 2: warning:
ignore unrecognized OpenCL extension
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
^
1 error detected in the compilation of "C:\Users\rouellet.AMD\AppData\Local\Temp\OCLE085.tmp.cl".
Internal error: clc compiler invocation failed.
************************************************
Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE
Location : SDKCommon.cpp:1614
Error: sampleCommon::buildOpenCLProgram() failed
Location : BoxFilterSAT.cpp:338