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

Add NaN checker control for fp buffers and images #305

Open
Novermars opened this issue Apr 11, 2023 · 0 comments
Open

Add NaN checker control for fp buffers and images #305

Novermars opened this issue Apr 11, 2023 · 0 comments

Comments

@Novermars
Copy link
Contributor

Add a control which checks all fp buffers/images for NaNs, outputs the first kernel which causes such a NaN to appear. Possibly before and after a kernel enqueue, to prevent garbage in == garbage out.

For debugging, it can be nice to detect the first time a NaN appears, so that this kernel and its inputs can be captured and replayed for further analysis.

Probably needs kernel argument reflection, to prevent false positives in int buffers or OpenCL images for which have an integer as underlying data type.

Give me a few days and I'll prepare a merge request :)

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