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

Remove all trailing nulls from OpenCL API info strings #1

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

jsatka
Copy link

@jsatka jsatka commented Jan 13, 2021

Info strings returned by program.get_build_log() may have multiple trailing null characters, which results in error with the to_str() method.

Happens at least with the current NVIDIA driver version 460.27.04 using OpenCL 1.2.

@kenba kenba merged commit 49e8c8c into kenba:main Jan 13, 2021
@kenba
Copy link
Owner

kenba commented Jan 13, 2021

Thank you jsatka, your fix that should solve the trailing null issue with all other info strings too.

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.

Change the API to use String instead of ffi::CString
2 participants