SWDEV-330666 - null(default) stream's priority is 0.
Change-Id: I115effc2ddaa28dee32967ee28041b9b8da095b9
This commit is contained in:
committed by
Jaydeepkumar Patel
parent
345e02358c
commit
c1503da69b
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user