mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-22 17:29:08 +00:00
Implement cuStreamCreate (#511)
This commit is contained in:
parent
262c25c76e
commit
3afb8d39e7
2 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,10 @@ pub(crate) fn synchronize(stream: hipStream_t) -> hipError_t {
|
||||||
unsafe { hipStreamSynchronize(stream) }
|
unsafe { hipStreamSynchronize(stream) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub(crate) fn create(stream: *mut hipStream_t, flags: ::core::ffi::c_uint) -> hipError_t {
|
||||||
|
unsafe { hipStreamCreateWithFlags(stream, flags) }
|
||||||
|
}
|
||||||
|
|
||||||
pub(crate) fn create_with_priority(
|
pub(crate) fn create_with_priority(
|
||||||
stream: *mut hipStream_t,
|
stream: *mut hipStream_t,
|
||||||
flags: ::core::ffi::c_uint,
|
flags: ::core::ffi::c_uint,
|
||||||
|
|
|
@ -152,6 +152,7 @@ cuda_macros::cuda_function_declarations!(
|
||||||
cuProfilerStart,
|
cuProfilerStart,
|
||||||
cuProfilerStop,
|
cuProfilerStop,
|
||||||
cuStreamBeginCapture_v2,
|
cuStreamBeginCapture_v2,
|
||||||
|
cuStreamCreate,
|
||||||
cuStreamCreateWithPriority,
|
cuStreamCreateWithPriority,
|
||||||
cuStreamDestroy_v2,
|
cuStreamDestroy_v2,
|
||||||
cuStreamEndCapture,
|
cuStreamEndCapture,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue