-
Notifications
You must be signed in to change notification settings - Fork 576
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
Kokkos: fix Sort bug with empty bins #2476
Conversation
See #2471 and kokkos/kokkos#1503 Out-of-bounds access when sorting an empty bin.
Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request. |
Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects: Pull Request Auto Testing STARTING (click to expand)Build InformationTest Name: Trilinos_pullrequest_gcc_4.9.3
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_gcc_4.8.4
Jenkins Parameters
Using Repos:
Pull Request Author: ibaned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. If there is 1 or 0 elements, don't bother sorting.
The thing that would make this better is if there was a unit test in Kokkos itself for this test case. I don't want to hold up the merge of this PR (because we have failing tests submitting CDash error emails this will clean up) but could someone add a unit test in Kokkos itself for 0 and 1 sizes?
Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED Pull Request Auto Testing has PASSED (click to expand)Build InformationTest Name: Trilinos_pullrequest_gcc_4.9.3
Jenkins Parameters
Build InformationTest Name: Trilinos_pullrequest_gcc_4.8.4
Jenkins Parameters
|
Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ bartlettroscoe mndevec ]! |
Status Flag 'Pull Request AutoTester' - Pull Request MUST BE MERGED MANUALLY BY Project Team - Master Automerge is disabled (in .cfg file) |
@trilinos/kokkos
Description
This fixes a bug in Kokkos where an access would be made out of bounds when sorting with empty bins.
Motivation and Context
This bug was causing test failures in the new ATDM builds with
KOKKOS_ENABLE_DEBUG=ON
, pushing the fix directly to Trilinos will help fix some of those failures.Related Issues
How Has This Been Tested?
A custom build with
KOKKOS_ENABLE_DEBUG
passes the KokkosKernels test that used to fail.