Skip to content

Commit c0450d5

Browse files
committed
remove redundant ctors
1 parent c5af236 commit c0450d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cudax/include/cuda/experimental/__stf/internal/async_resources_handle.cuh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ inline unsigned long long get_stream_id(cudaStream_t stream)
7575
*/
7676
struct decorated_stream
7777
{
78-
decorated_stream(cudaStream_t stream = nullptr, unsigned long long id = k_no_stream_id, int dev_id = -1)
78+
decorated_stream() = default;
79+
80+
decorated_stream(cudaStream_t stream, unsigned long long id, int dev_id = -1)
7981
: stream(stream)
8082
, id(id)
8183
, dev_id(dev_id)
8284
{}
8385

84-
/** Construct from stream only; id and dev_id are computed (id via cuStreamGetId, dev_id left -1). */
86+
/** Construct from stream only; id is from cuStreamGetId, dev_id is -1 (filled lazily when needed). */
8587
explicit decorated_stream(cudaStream_t stream)
8688
: stream(stream)
8789
, id(get_stream_id(stream))

0 commit comments

Comments
 (0)