dpctl.SyclQueue.has_enable_profiling¶
- SyclQueue.has_enable_profiling¶
TrueifSyclQueuewas constructed with"enabled_profiling"property,Falseotherwise.- 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
SyclQueueis being collected.- Return type:
Note
Profiling information can be accessed using properties
dpctl.SyclEvent.profiling_info_submit,dpctl.SyclEvent.profiling_info_start, anddpctl.SyclEvent.profiling_info_end. It is also necessary for proper working ofdpctl.SyclTimer.Collection of profiling information is not enabled by default.