NOpenCL
NOpenCL copied to clipboard
TestOptimizationCpu failing
This test throws for me. requiredSize is Zero which matches what I see in the documentation since we passed in null pointers.
clGetKernelWorkGroupInfo should return an error code if the requested parameter size isn't large enough to hold the actual runtime size.
if (fixedSize.HasValue && !verifyFixedSize)
requiredSize = (UIntPtr)fixedSize;
else
ErrorHandler.ThrowOnFailure(clGetKernelWorkGroupInfo(kernel, device, parameter.ParameterInfo.Name, UIntPtr.Zero, IntPtr.Zero, out requiredSize));
if (verifyFixedSize && fixedSize.HasValue)
{
if (requiredSize.ToUInt64() != (ulong)fixedSize.Value)
throw new ArgumentException("The parameter definition includes a fixed size that does not match the required size according to the runtime.");
}