-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from kokkos/60-test-resilient-execution-spaces…
…-in-CI test resilient execution spaces in CI
- Loading branch information
Showing
6 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,29 @@ | |
* | ||
* Questions? Contact Christian R. Trott ([email protected]) | ||
*/ | ||
|
||
#include "resilience/Resilience.hpp" | ||
|
||
namespace KokkosResilience { | ||
|
||
void default_unrecoverable_data_corruption_handler(std::size_t) { | ||
Kokkos::abort( | ||
"Resilience majority voting failed because each execution obtained a " | ||
"differing value."); | ||
} | ||
|
||
namespace { | ||
unrecoverable_data_corruption_handler g_unrecoverable_data_corruption_handler = | ||
default_unrecoverable_data_corruption_handler; | ||
} | ||
|
||
void set_unrecoverable_data_corruption_handler( | ||
unrecoverable_data_corruption_handler handler) { | ||
g_unrecoverable_data_corruption_handler = handler; | ||
} | ||
|
||
unrecoverable_data_corruption_handler& | ||
get_unrecoverable_data_corruption_handler() { | ||
return g_unrecoverable_data_corruption_handler; | ||
} | ||
} // namespace KokkosResilience |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters