Skip to content

Commit

Permalink
Fix overzealus check
Browse files Browse the repository at this point in the history
  • Loading branch information
vosen committed Jul 4, 2021
1 parent 1897d33 commit 2c6bee4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions zluda/src/impl/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ pub(crate) fn destroy_v2(pstream: *mut Stream) -> Result<(), CUresult> {
}

pub(crate) fn synchronize(pstream: *mut Stream) -> Result<(), CUresult> {
if pstream == ptr::null_mut() {
return Err(CUresult::CUDA_ERROR_INVALID_VALUE);
}
GlobalState::lock_stream(pstream, |stream_data| Ok(stream_data.synchronize()?))?
}

Expand Down

0 comments on commit 2c6bee4

Please sign in to comment.