First implementation of hipCtxXXX functions
Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
[ROCm/clr commit: f734f12411]
Этот коммит содержится в:
1 родитель
dbf39d1c5b
Коммит
b55d509790
4 files changed
+83
No files matched your search
@@ -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();
|
||||
};
|
||||
Reference in new issue
Block a user