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

test: Improve output for failed MPI ranks #37

Merged
merged 1 commit into from
May 6, 2024

Conversation

cwpearson
Copy link
Collaborator

@cwpearson cwpearson commented Apr 22, 2024

  • Provides a custom GTest Environment and Listener for MPI
  • Adds unit tests which run first that use GTest to make sure failed GTest tests are detected as failed (I put GTest in your GTest so you can GTest while you GTest)

Now on a failure we'll get something like:

3: [==========] Running 40 tests from 21 test suites.
3: [----------] Global test environment set-up.
3: [----------] 6 tests from testgroup
3: [ RUN      ] testgroup.testname
3: /path/to/file:32: Failure
3: Value of: true
3:   Actual: true
3: Expected: false
3: 
3: (rank 0 failed)                            // added this
3: (some rank failed, more information above) // added this

@cwpearson cwpearson merged commit d577a5e into kokkos:develop May 6, 2024
6 checks passed
@cwpearson cwpearson deleted the enhancement/gtest-mpi branch May 6, 2024 18:45
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.

2 participants