diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index 031222f18f62..96746ef10622 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -2888,6 +2888,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. *