![]() |
Shamrock 2025.10.0
Astrophysical Code
|
A utility class to check for errors on device, using a single uint to store all the error flags. More...
#include <shamalgs/include/shamalgs/atomic/ErrorChecker.hpp>
Collaboration diagram for shamalgs::atomic::ErrorCheckerFlags:Classes | |
| struct | accessed |
| A struct to access the pointer associated to the buffer. More... | |
Public Member Functions | |
| ErrorCheckerFlags (sham::DeviceScheduler_ptr sched) | |
| 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. | |
| u32 | get_output () |
| Get the resulting error flag. | |
Public Attributes | |
| sham::DeviceBuffer< u32 > | buf_err |
| The buffer used to store the error flag. | |
A utility class to check for errors on device, using a single uint to store all the error flags.
This class provides a way to check for errors on device, using a single uint to store all the error flags. The error flags are packed in the uint and can be checked using the is_flag_on function.
Definition at line 66 of file ErrorChecker.hpp.
|
inline |
Constructor.
Definition at line 72 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Complete the event state.
Definition at line 96 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Get the resulting error flag.
Definition at line 99 of file ErrorChecker.hpp.
Here is the call graph for this function:
|
inline |
Get a write access to the buffer.
Definition at line 91 of file ErrorChecker.hpp.
Here is the call graph for this function:| sham::DeviceBuffer<u32> shamalgs::atomic::ErrorCheckerFlags::buf_err |
The buffer used to store the error flag.
Definition at line 69 of file ErrorChecker.hpp.