Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestOptimizationCpu failing #27

Open
kayle opened this issue Nov 15, 2017 · 0 comments
Open

TestOptimizationCpu failing #27

kayle opened this issue Nov 15, 2017 · 0 comments

Comments

@kayle
Copy link

kayle commented Nov 15, 2017

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.");
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant