Add HIP_WAIT_MODE env var.

Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.

Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e
This commit is contained in:
Ben Sander
2016-10-18 22:25:26 -05:00
parent 4acb7dd947
commit d4b23da91f
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 {