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

Fixed OpenCL primitive type generation when using Force32BitFloats #88

Merged
merged 1 commit into from May 3, 2020

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented May 1, 2020

When using ContextFlags.Force32BitFloats, the mapping gets populated with mapping[Float32] = "float", and then incorrectly overridden with mapping[Float32] = "double".

NB: There may be another potential problem in IRTypeContext.cs - the ClearCache method does not have any logic to deal with ContextFlags.Force32BitFloats.

Related to #85

@m4rs-mt m4rs-mt merged commit 41a0ba5 into m4rs-mt:master May 3, 2020
@MoFtZ MoFtZ deleted the bug/openCL/force32bitfloats branch May 4, 2020 04:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants