First implementation of hipCtxXXX functions

Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
这个提交包含在:
Rahul Garg
2016-08-13 00:09:08 +05:30
父节点 0827e44a90
当前提交 62d390da58
修改 4 个文件,包含 83 行新增0 行删除
+7
查看文件
@@ -31,9 +31,16 @@ int main(int argc, char *argv[])
hipDevice_t device;
hipCtx_t ctx;
hipCtx_t ctx1;
HIPCHECK(hipDeviceGetFromId(&device, 0));
HIPCHECK(hipCtxCreate(&ctx, 0, device));
HIPCHECK(hipCtxGetCurrent(&ctx1));
HIPCHECK(hipCtxPopCurrent(&ctx1));
HIPCHECK(hipCtxGetCurrent(&ctx1));
HIPCHECK(hipCtxDestroy(ctx));
passed();
};