OpenCL カーネルで倍精度拡張機能を使用しようとしましたが、ビルドできません。(Cloo.BuildProgramFailureComputeException)
これが私のコードです:
string kernel = @"
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
kernel void ImgWarp(
global char* img1,
global char* img2)
{ }"
ComputeContextPropertyList Properties = new ComputeContextPropertyList(ComputePlatform.Platforms[0]);
ComputeContext context = new ComputeContext(ComputeDeviceTypes.All, Properties, null, IntPtr.Zero);
ComputeProgram program = new ComputeProgram(context, kernel);
program.Build(null, null, null, IntPtr.Zero);
ハードウェアが倍精度をサポートしていることを確認しました。ただし、cl_amd_printf 拡張機能を使用すると機能します。何か案は?