File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ bitflags::bitflags! {
27
27
28
28
/// This stream does not synchronize with the NULL stream.
29
29
///
30
+ /// **Note: this flag has been temporarily disabled because of [soundness concerns](https://github.com/Rust-GPU/Rust-CUDA/issues/15)**
31
+ ///
30
32
/// Note that the name is chosen to correspond to CUDA documentation, but is nevertheless
31
33
/// misleading. All work within a single stream is ordered and asynchronous regardless
32
34
/// of whether this flag is set. All streams in cust may execute work concurrently,
@@ -83,7 +85,9 @@ impl Stream {
83
85
/// # Ok(())
84
86
/// # }
85
87
/// ```
86
- pub fn new ( flags : StreamFlags , priority : Option < i32 > ) -> CudaResult < Self > {
88
+ pub fn new ( mut flags : StreamFlags , priority : Option < i32 > ) -> CudaResult < Self > {
89
+ // NOTE(RDambrosio016): See https://github.com/Rust-GPU/Rust-CUDA/issues/15
90
+ flags. remove ( StreamFlags :: NON_BLOCKING ) ;
87
91
unsafe {
88
92
let mut stream = Stream {
89
93
inner : ptr:: null_mut ( ) ,
You can’t perform that action at this time.
0 commit comments