Skip to content

Conversation

@johannes-graner
Copy link
Contributor

Proposed changes

Refactors the GPU verification to not exit early on errors, instead gathering all errors and returning a struct with error stats.

Checklist

Please put an x into the boxes that apply. You can also fill these out after creating the PR. If you're not sure, please don't hesitate to ask.

  • I have added tests relevant to the introduced functionality, and the unit tests are passing locally
  • I have added the test to REGRESSION_TESTS list defined at the top of CMakeLists.txt in tests/CMakeLists.txt, IF the test takes more than 30 seconds to run.
  • I have added inline documentation which enables the maintainers with understanding the motivation
  • I have removed the stale documentation which is no longer relevant after this pull request
  • (If this change is user-facing) I have added release notes which provide the end users with a brief summary of the improvement from this pull request
  • I have run clang-format on all changed files
  • Any dependent changes have been merged

Discussion

There is some slowdown for large tensors with very large number of errors (tested by setting reference tensor to 0 in test_grouped_convnd_fwd). An initial implementation did not perform error statistic reduction in LDS, instead using atomic instructions for each error, this was extremely slow so the added complexity of LDS reduction is necessary.

Snektron
Snektron previously approved these changes Jan 12, 2026
@johannes-graner johannes-graner merged commit f173642 into develop Jan 14, 2026
27 of 29 checks passed
@johannes-graner johannes-graner deleted the jograner/gpu-verification-error-reporting branch January 14, 2026 15:04
shumway pushed a commit that referenced this pull request Jan 15, 2026
…3551)

* Refactor GPU verification kernel to gather erorr stats on GPU

* Check if result is all zero

* non-negative error count doesn't need custom Atomics

* Remove unnecessary AtomicMaxFloat function

* Simpler warp reduction, remove passed flag

* Move verification header to include

* Fix header path in test

* Fix block reduction loop
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.

4 participants