Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

support per-thread default stream #1128

Merged
merged 1 commit into from
May 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions thrust/system/cuda/detail/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ inline __host__ __device__
cudaStream_t
default_stream()
{
#ifdef CUDA_API_PER_THREAD_DEFAULT_STREAM
return cudaStreamPerThread;
#else
return cudaStreamLegacy;
#endif
}

// Fallback implementation of the customization point.
Expand Down