Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
sham::gpu_core_timeline_profilier::acc Struct Reference
+ 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

TimelineEventevents
 
u64event_count
 
u64 max_event_count
 

Detailed Description

Definition at line 168 of file gpu_core_timeline.hpp.

Member Function Documentation

◆ end_timeline_event()

void sham::gpu_core_timeline_profilier::acc::end_timeline_event ( const local_access_t acc) const
inline

Finish a timeline event.

This function must be called at the end of the kernel to register the resulting events.

Parameters
[in]accThe 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:

◆ init_timeline_event()

void sham::gpu_core_timeline_profilier::acc::init_timeline_event ( sycl::nd_item< 1 >  item,
const local_access_t acc 
) const
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.

Parameters
[in]itemThe sycl::nd_item representing the current work-group.
[in]accThe 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:

◆ start_timeline_event()

void sham::gpu_core_timeline_profilier::acc::start_timeline_event ( const local_access_t acc) const
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.

Parameters
[in]accThe 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:

Member Data Documentation

◆ event_count

u64* sham::gpu_core_timeline_profilier::acc::event_count

Definition at line 170 of file gpu_core_timeline.hpp.

◆ events

TimelineEvent* sham::gpu_core_timeline_profilier::acc::events

Definition at line 169 of file gpu_core_timeline.hpp.

◆ max_event_count

u64 sham::gpu_core_timeline_profilier::acc::max_event_count

Definition at line 171 of file gpu_core_timeline.hpp.


The documentation for this struct was generated from the following file: