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 marshalling ArrayView.Empty as kernel parameter. #1131

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented Nov 30, 2023

Fixes #1121.

The Empty member of ArrayView does not initialize its internal MemoryBuffer. When marshaling to OpenCL, there is an exception throw.

Other accelerators use a different mechanism, so are unaffected.

@m4rs-mt m4rs-mt added the bug label Nov 30, 2023
@m4rs-mt m4rs-mt added this to the v2.0 milestone Nov 30, 2023
@m4rs-mt m4rs-mt merged commit d49fd60 into m4rs-mt:master Dec 1, 2023
34 checks passed
@MoFtZ MoFtZ deleted the bug/empty-array-view-arg branch December 2, 2023 03:38
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 18, 2024
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
MoFtZ added a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullReferenceException when passing empty ArrayViews to OpenCL kernel
2 participants