SWDEV-363850 - fix a bug in mutual exclusive flags
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: If7687b5bf7ec7ff1978991cbf7dafa0612912274
[ROCm/clr commit: 84fa61a39b]
This commit is contained in:
@@ -576,7 +576,7 @@ hipError_t hipSetDeviceFlags ( unsigned int flags ) {
|
||||
|
||||
if (((scheduleFlag & mutualExclusiveFlags) != hipDeviceScheduleSpin) && ((scheduleFlag & mutualExclusiveFlags) != hipDeviceScheduleYield)
|
||||
&& ((scheduleFlag & mutualExclusiveFlags) != hipDeviceScheduleBlockingSync)
|
||||
&& ((scheduleFlag & hipDeviceScheduleAuto) != hipDeviceScheduleAuto)) {
|
||||
&& ((scheduleFlag & mutualExclusiveFlags) != hipDeviceScheduleAuto)) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user