![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Collaboration diagram for sham::gpu_core_timeline_profilier::acc:Public Member Functions | |
| void | init_timeline_event (sycl::nd_item< 1 > item, const local_access_t &acc) const |
| Initialize a timeline event. | |
| void | start_timeline_event (const local_access_t &acc) const |
| Start a timeline event. | |
| void | end_timeline_event (const local_access_t &acc) const |
| Finish a timeline event. | |
Public Attributes | |
| TimelineEvent * | events |
| u64 * | event_count |
| u64 | max_event_count |
Definition at line 168 of file gpu_core_timeline.hpp.
|
inline |
Finish a timeline event.
This function must be called at the end of the kernel to register the resulting events.
| [in] | acc | The local accessor for the current work-group. |
Definition at line 251 of file gpu_core_timeline.hpp.
Here is the call graph for this function:
|
inline |
Initialize a timeline event.
This function must be called at the beginning of the kernel to register a new timeline event. The function will only be executed by one thread of the work-group, and will be synchronized with the other threads of the work-group.
This function will allocate a new timeline event if there is still space available in the buffer. If the buffer is full, the function will do nothing.
The function will also set the start time of the timeline event to the current device clock.
| [in] | item | The sycl::nd_item representing the current work-group. |
| [in] | acc | The local accessor for the current work-group. |
Definition at line 189 of file gpu_core_timeline.hpp.
Here is the call graph for this function:
|
inline |
Start a timeline event.
This function must be called at the start of the kernel to register to get the start time of the worker thread.
| [in] | acc | The local accessor for the current work-group. |
Definition at line 221 of file gpu_core_timeline.hpp.
Here is the call graph for this function:| u64* sham::gpu_core_timeline_profilier::acc::event_count |
Definition at line 170 of file gpu_core_timeline.hpp.
| TimelineEvent* sham::gpu_core_timeline_profilier::acc::events |
Definition at line 169 of file gpu_core_timeline.hpp.
| u64 sham::gpu_core_timeline_profilier::acc::max_event_count |
Definition at line 171 of file gpu_core_timeline.hpp.