Add HIP_WAIT_MODE env var.

Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.

Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e


[ROCm/clr commit: d4b23da91f]
Esse commit está contido em:
Ben Sander
2016-10-18 22:25:26 -05:00
commit e53561c960
2 arquivos alterados com 12 adições e 5 exclusões
+3 -2
Ver Arquivo
@@ -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 {