Add HIP_WAIT_MODE env var.

Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.

Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e


[ROCm/clr commit: d4b23da91f]
This commit is contained in:
Ben Sander
2016-10-18 22:25:26 -05:00
والد 90bc4809b0
کامیت e53561c960
2فایلهای تغییر یافته به همراه12 افزوده شده و 5 حذف شده
@@ -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 {