Skip to content

[FEA] Add member function for device_uvector and device_scalar to query the associated stream #885

@fkallen

Description

@fkallen

device_buffer has a function to query the stream of the last memory operation.

/**
   * @brief Returns stream most recently specified for allocation/deallocation
   */
  [[nodiscard]] cuda_stream_view stream() const noexcept { return _stream; }

It would be nice to have a similar function for device_uvector. This can help debugging, for example asserting that the stream has the expected value.

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