dpctl.SyclQueue.has_enable_profiling

SyclQueue.has_enable_profiling

True if SyclQueue was constructed with "enabled_profiling" property, False otherwise.

Example:

..code-block:: python

>>> import dpctl
>>> q = dpctl.SyclQueue("cpu")
>>> q.has_enable_profiling
False
>>> q = dpctl.SyclQueue("cpu", property="enable_profiling")
>>> q.has_enable_profiling
True
Returns:

Whether profiling information for tasks submitted to this SyclQueue is being collected.

Return type:

bool

Note

Profiling information can be accessed using properties dpctl.SyclEvent.profiling_info_submit, dpctl.SyclEvent.profiling_info_start, and dpctl.SyclEvent.profiling_info_end. It is also necessary for proper working of dpctl.SyclTimer.

Collection of profiling information is not enabled by default.