Skip to content

DPCTLQueue_HasProperty should be added to C-API #506

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions