Add HIP_WAIT_MODE env var.

Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.

Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e


[ROCm/hip commit: 000d75de95]
This commit is contained in:
Ben Sander
2016-10-18 22:25:26 -05:00
parent f7e9300d4e
commit 56cc2e3deb
2 changed files with 12 additions and 5 deletions
+3 -2
View File
@@ -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 {