Implementation of hipCtxGetDevice

Change-Id: I067572e486323c3aad6f744a2c0c4997c8696af6


[ROCm/clr commit: 5eb889f73c]
이 커밋은 다음에 포함됨:
Rahul Garg
2016-08-13 01:17:46 +05:30
부모 b55d509790
커밋 a23ea89cae
3개의 변경된 파일과 17개의 추가작업 그리고 1개의 파일을 삭제
+2 -1
파일 보기
@@ -30,13 +30,14 @@ int main(int argc, char *argv[])
HIPCHECK(hipInit(0));
hipDevice_t device;
hipDevice_t device1;
hipCtx_t ctx;
hipCtx_t ctx1;
HIPCHECK(hipDeviceGetFromId(&device, 0));
HIPCHECK(hipCtxCreate(&ctx, 0, device));
HIPCHECK(hipCtxGetCurrent(&ctx1));
HIPCHECK(hipCtxGetDevice(&device1));
HIPCHECK(hipCtxPopCurrent(&ctx1));
HIPCHECK(hipCtxGetCurrent(&ctx1));