We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793c766 commit ec275a8Copy full SHA for ec275a8
include/ghex/device/cuda/stream.hpp
@@ -27,7 +27,11 @@ struct stream
27
cudaStream_t m_stream;
28
ghex::util::moved_bit m_moved;
29
30
- stream(){GHEX_CHECK_CUDA_RESULT(cudaStreamCreateWithFlags(&m_stream, cudaStreamNonBlocking))}
+ stream() {
31
+ int least_priority, greatest_priority;
32
+ GHEX_CHECK_CUDA_RESULT(cudaDeviceGetStreamPriorityRange(&least_priority, &greatest_priority))
33
+ GHEX_CHECK_CUDA_RESULT(cudaStreamCreateWithPriority(&m_stream, cudaStreamNonBlocking, greatest_priority))
34
+ }
35
36
stream(const stream&) = delete;
37
stream& operator=(const stream&) = delete;
0 commit comments