Merged
Conversation
This calls sycl::queue::has_property<sycl::property::queue::enable_profiling>()
Queries whether queue was constructed with said property. If so, events from tasks submitted to this queue will have profiling info
Collaborator
``` In [1]: import dpctl In [2]: dpctl.SyclQueue() Out[2]: <dpctl.SyclQueue at 0x7f8752c07b90> In [3]: dpctl.SyclQueue(property='in_order') Out[3]: <dpctl.SyclQueue at 0x7f87494f4870, property=['in_order']> In [4]: dpctl.SyclQueue(property=['in_order']) Out[4]: <dpctl.SyclQueue at 0x7f8753587f00, property=['in_order']> In [5]: dpctl.SyclQueue(property=['in_order', 'enable_profiling']) Out[5]: <dpctl.SyclQueue at 0x7f8734016eb0, property=['in_order', 'enable_profling']> ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C-API function
DPCTLQueue_HasEnableProfiling(QRef)that returnstrueifQRefreferences asycl::queuethat was created to have propertysycl::property::queue::enable_profiling.dpctl.SyclQueueacquired propertydpctl.SyclQueue.has_enable_profiling.This was used in
dpctl.SyclQueue.__repr__to echo properties of the queue instance.