Context update.

- Remove tls_deviceID.
- Add first passing test.

Change-Id: If3e2f254abf589028cfe4f9e6369745f04160de0
This commit is contained in:
Ben Sander
2016-08-09 15:37:19 -05:00
parent 1786b120ed
commit 89164259ab
8 changed files with 107 additions and 64 deletions
+2 -2
View File
@@ -27,12 +27,12 @@ int main(int argc, char *argv[])
{
HipTest::parseStandardArguments(argc, argv, true);
HIPCHECK(hipInit());
HIPCHECK(hipInit(0));
hipDevice_t device;
hipCtx_t ctx;
HIPCHECK(hipDeviceGet(&device, 1));
HIPCHECK(hipDeviceGetFromId(&device, 0));
HIPCHECK(hipCtxCreate(&ctx, 0, device));
passed();