Add HIP_WAIT_MODE env var.
Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue. Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e
This commit is contained in:
@@ -285,14 +285,15 @@ hipError_t hipSetDeviceFlags( unsigned int flags)
|
||||
e = hipSuccess;
|
||||
break;
|
||||
default:
|
||||
e = hipErrorInvalidValue;
|
||||
e = hipSuccess; // TODO - should this be error? Map to Auto?
|
||||
//e = hipErrorInvalidValue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned supportedFlags = hipDeviceScheduleMask | hipDeviceMapHost | hipDeviceLmemResizeToMax;
|
||||
|
||||
if (flags & ~supportedFlags) {
|
||||
if (flags & (~supportedFlags)) {
|
||||
e = hipErrorInvalidValue;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user