diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index b3b8889d1f..4a5b5fc5b0 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -2922,6 +2922,16 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int * @see hipStreamCreateWithFlags */ hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int* flags); +/** + * @brief Queries the Id of a stream. + * + * @param[in] stream Stream to be queried + * @param[in,out] flags Pointer to an unsigned long long in which the stream's id is returned + * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidHandle. + * + * @see hipStreamCreateWithFlags, hipStreamGetFlags, hipStreamCreateWithPriority, hipStreamGetPriority + */ +hipError_t hipStreamGetId(hipStream_t stream, unsigned long long* streamId); /** * @brief Queries the priority of a stream. *