Context update.

- Remove tls_deviceID.
- Add first passing test.

Change-Id: If3e2f254abf589028cfe4f9e6369745f04160de0


[ROCm/hip commit: 89164259ab]
Dieser Commit ist enthalten in:
Ben Sander
2016-08-09 15:37:19 -05:00
Ursprung c9c8c1323f
Commit 0221323977
8 geänderte Dateien mit 107 neuen und 64 gelöschten Zeilen
+1 -1
Datei anzeigen
@@ -51,7 +51,7 @@ hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
hipError_t e = hipSuccess;
*ctx = new ihipCtx_t(device, g_deviceCnt, flags);
tls_defaultCtx = *ctx;
ihipSetTlsDefaultCtx(*ctx);
tls_ctxStack.push(*ctx);
return ihipLogStatus(e);