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! {
2727
2828 /// This stream does not synchronize with the NULL stream.
2929 ///
30+ /// **Note: this flag has been temporarily disabled because of [soundness concerns](https://github.com/Rust-GPU/Rust-CUDA/issues/15)**
31+ ///
3032 /// Note that the name is chosen to correspond to CUDA documentation, but is nevertheless
3133 /// misleading. All work within a single stream is ordered and asynchronous regardless
3234 /// of whether this flag is set. All streams in cust may execute work concurrently,
@@ -83,7 +85,9 @@ impl Stream {
8385 /// # Ok(())
8486 /// # }
8587 /// ```
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 ) ;
8791 unsafe {
8892 let mut stream = Stream {
8993 inner : ptr:: null_mut ( ) ,
You can’t perform that action at this time.
0 commit comments