NOpenCL icon indicating copy to clipboard operation
NOpenCL copied to clipboard

TestOptimizationCpu failing

Open kayle opened this issue 7 years ago • 0 comments

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.");
            }

kayle avatar Nov 15 '17 16:11 kayle