mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-03 14:50:53 +00:00
Fix overzealus check
This commit is contained in:
parent
1897d33916
commit
2c6bee4955
1 changed files with 0 additions and 3 deletions
|
@ -168,9 +168,6 @@ pub(crate) fn destroy_v2(pstream: *mut Stream) -> Result<(), CUresult> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn synchronize(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()?))?
|
GlobalState::lock_stream(pstream, |stream_data| Ok(stream_data.synchronize()?))?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue