Implement cuStreamCreate (#511)

This commit is contained in:
Violet 2025-09-16 15:52:35 -07:00 committed by GitHub
commit 3afb8d39e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,10 @@ pub(crate) fn synchronize(stream: hipStream_t) -> hipError_t {
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(
stream: *mut hipStream_t,
flags: ::core::ffi::c_uint,

View file

@ -152,6 +152,7 @@ cuda_macros::cuda_function_declarations!(
cuProfilerStart,
cuProfilerStop,
cuStreamBeginCapture_v2,
cuStreamCreate,
cuStreamCreateWithPriority,
cuStreamDestroy_v2,
cuStreamEndCapture,