Skip to content

Commit

Permalink
the streams created by cudax::stream should not synchronize with th…
Browse files Browse the repository at this point in the history
…e null stream (#3167)
  • Loading branch information
ericniebler authored Dec 14, 2024
1 parent 3a7f2cd commit 0aa0b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cudax/include/cuda/experimental/__stream/stream.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct stream : stream_ref
{
[[maybe_unused]] __ensure_current_device __dev_setter(__dev);
_CCCL_TRY_CUDA_API(
::cudaStreamCreateWithPriority, "Failed to create a stream", &__stream, cudaStreamDefault, __priority);
::cudaStreamCreateWithPriority, "Failed to create a stream", &__stream, cudaStreamNonBlocking, __priority);
}

//! @brief Constructs a stream on a specified logical device and with specified priority
Expand All @@ -61,7 +61,7 @@ struct stream : stream_ref
{
[[maybe_unused]] __ensure_current_device __dev_setter(__dev);
_CCCL_TRY_CUDA_API(
::cudaStreamCreateWithPriority, "Failed to create a stream", &__stream, cudaStreamDefault, __priority);
::cudaStreamCreateWithPriority, "Failed to create a stream", &__stream, cudaStreamNonBlocking, __priority);
}

//! @brief Constructs a stream on the default device
Expand Down

0 comments on commit 0aa0b37

Please sign in to comment.