legate::cuda::StreamPool#

class StreamPool#

A stream pool.

Deprecated:

since 24.11: use legate::TaskContext::get_task_stream() instead

Public Functions

StreamView get_stream()#

Returns a StreamView in the pool.

Deprecated:

since 24.11: use legate::TaskContext::get_task_stream() instead

Returns:

A StreamView object. Currently, all stream views returned from this pool are backed by the same CUDA stream.

Public Static Functions

static StreamPool &get_stream_pool()#

Returns a singleton stream pool.

Deprecated:

since 24.11: use legate::TaskContext::get_task_stream() instead

The stream pool is alive throughout the program execution.

Returns:

A StreamPool object