From 71736d2ed2eeafa42afcca71837e69ba32b933a2 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Sun, 4 Sep 2016 20:37:29 +0530 Subject: [PATCH] Removed NVCC check for hipCtxXXX functions in module_api/runKernel.cpp Change-Id: I2bdd4fadf41063ec60626f1850e16f8307ebe6b5 --- samples/0_Intro/module_api/runKernel.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/samples/0_Intro/module_api/runKernel.cpp b/samples/0_Intro/module_api/runKernel.cpp index 1c0dd9f349..8c1ed1598f 100644 --- a/samples/0_Intro/module_api/runKernel.cpp +++ b/samples/0_Intro/module_api/runKernel.cpp @@ -47,14 +47,11 @@ int main(){ B[i] = 0.0f; } - -#ifdef __HIP_PLATFORM_NVCC__ hipInit(0); - hipDevice_t device; - hipCtx_t context; - hipDeviceGet(&device, 0); - hipCtxCreate(&context, 0, device); -#endif + hipDevice_t device; + hipCtx_t context; + hipDeviceGet(&device, 0); + hipCtxCreate(&context, 0, device); hipMalloc((void**)&Ad, SIZE); hipMalloc((void**)&Bd, SIZE); @@ -107,9 +104,6 @@ int main(){ std::cout<