Creating a sycl::queue one can specify properties, such as in_order and/or, enable_profiling.
SyclQueue has .is_in_order method that allows to check if the queue is in order, but provides no way to query whether or not the queue enables profiling.
bool q_supports_profiling = q.has_property<sycl::property::queue::enable_profiling>();
Having this in CAPI would enable Python API to provide a way to query this property.
Whether it should be designed to as bool DPCTLQueue_HasProperty(enum), or we should just add bool DPCTLQueue_HasInOrderProperty(void), bool DPCTLQueue_HasEnableProfilingProperty(void).
I think I would prefer the latter (lesss overhead).
Creating a
sycl::queueone can specify properties, such asin_orderand/or,enable_profiling.SyclQueuehas.is_in_ordermethod that allows to check if the queue is in order, but provides no way to query whether or not the queue enables profiling.bool q_supports_profiling = q.has_property<sycl::property::queue::enable_profiling>();Having this in CAPI would enable Python API to provide a way to query this property.
Whether it should be designed to as
bool DPCTLQueue_HasProperty(enum), or we should just addbool DPCTLQueue_HasInOrderProperty(void),bool DPCTLQueue_HasEnableProfilingProperty(void).I think I would prefer the latter (lesss overhead).