From f8f75faba31ead41a645597a4528cc515b09dee3 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 9 Sep 2016 12:04:22 +0530 Subject: [PATCH] Directed tests: Fix hipCtx_simple on NVCC The test was using hipDeviceGetFromId instead of hipDeviceGet Change-Id: Ia035ded5212f2659d5c8f01e9f6fcec514fe7ccb --- hipamd/tests/src/context/hipCtx_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/tests/src/context/hipCtx_simple.cpp b/hipamd/tests/src/context/hipCtx_simple.cpp index 882cf44f6d..a5e08a4551 100644 --- a/hipamd/tests/src/context/hipCtx_simple.cpp +++ b/hipamd/tests/src/context/hipCtx_simple.cpp @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) hipCtx_t ctx; hipCtx_t ctx1; - HIPCHECK(hipDeviceGetFromId(&device, 0)); + HIPCHECK(hipDeviceGet(&device, 0)); HIPCHECK(hipCtxCreate(&ctx, 0, device)); HIPCHECK(hipCtxGetCurrent(&ctx1)); HIPCHECK(hipCtxGetDevice(&device1));