SWDEV-330666 - null(default) stream's priority is 0.

Change-Id: I115effc2ddaa28dee32967ee28041b9b8da095b9


[ROCm/clr commit: c1503da69b]
Этот коммит содержится в:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2022-04-13 00:28:52 -04:00
1 родитель 89ca29819e
Коммит 3a7351ef9c
1 file changed
+4
+4
Просмотреть файл
@@ -586,6 +586,10 @@ hipError_t hipExtStreamCreateWithCUMask(hipStream_t* stream, uint32_t cuMaskSize
// ================================================================================================
hipError_t hipStreamGetPriority(hipStream_t stream, int* priority) {
HIP_INIT_API(hipStreamGetPriority, stream, priority);
if ((priority != nullptr) && (stream == nullptr)) {
*priority = 0;
HIP_RETURN(hipSuccess);
}
if ((priority != nullptr) && (stream != nullptr)) {
if (!hip::isValid(stream)) {