Skip to content

Is guidance for stream=-1 intentional in dlpack #949

Open
@seberg

Description

@seberg

Sorry, I don't know the discussion, a question for @leofang or @tqchen probably. The docs for the stream say that:

If stream is -1, the value may be used by the consumer to signal “producer must not perform any synchronization”.

Which seems very strict, but also I was pointed out that there is no real use-case? If users control streams well enough to consider things safe?

I think there may be a use-case where you e.g. visualize a running simulation where the visualization is happy to show an inconsistent state.
Was that the reason, or was this just an oversight? And if, should it say "should" rather than "must"?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions