![]() |
Shamrock 2025.10.0
Astrophysical Code
|
This class is used to check for errors in kernels. It is composed of a buffer of u32 that is used to store the error counts. More...
#include <shamalgs/include/shamalgs/atomic/ErrorChecker.hpp>
Collaboration diagram for shamalgs::atomic::ErrorCheckCounter:Classes | |
| struct | accessed |
| A struct to access the pointer associated to the buffer. More... | |
Public Member Functions | |
| ErrorCheckCounter (sham::DeviceScheduler_ptr sched, u32 error_counter) | |
| Constructor. | |
| accessed | get_write_access (sham::EventList &depends_list) |
| Get a write access to the buffer. | |
| void | complete_event_state (sycl::event e) |
| Complete the event state. | |
| std::vector< u32 > | get_outputs () |
| Get the resulting error counts. | |
Public Attributes | |
| sham::DeviceBuffer< u32 > | buf_err |
| The buffer used to store the error counts. | |
This class is used to check for errors in kernels. It is composed of a buffer of u32 that is used to store the error counts.
The class provides a method to count errors for multiple flags. The flags are set by doing a fetch add operation on the corresponding element of the buffer. The element is chosen by the argument of the set_error method. The value of the element is incremented by 1 each time the set_error method is called.
Definition at line 135 of file ErrorChecker.hpp.
|
inline |
Constructor.
Definition at line 141 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Complete the event state.
Definition at line 168 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Get the resulting error counts.
Definition at line 171 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Get a write access to the buffer.
Definition at line 163 of file ErrorChecker.hpp.
Here is the call graph for this function:| sham::DeviceBuffer<u32> shamalgs::atomic::ErrorCheckCounter::buf_err |
The buffer used to store the error counts.
Definition at line 138 of file ErrorChecker.hpp.