From 3eed9aba5d5ad65bc1ae92041b4e0dda146a0a89 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Fri, 31 Mar 2017 14:13:46 -0500 Subject: [PATCH] added debug support for HIP sample Change-Id: Ia7265234082039b68114f7421f4dbcb7149d4d2b --- samples/0_Intro/module_api/runKernel.cpp | 9 ++++++--- src/hip_module.cpp | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/samples/0_Intro/module_api/runKernel.cpp b/samples/0_Intro/module_api/runKernel.cpp index e7d54beb54..355f0bf5da 100644 --- a/samples/0_Intro/module_api/runKernel.cpp +++ b/samples/0_Intro/module_api/runKernel.cpp @@ -33,6 +33,9 @@ THE SOFTWARE. #define fileName "vcpy_kernel.code" #define kernel_name "hello_world" +#define HIP_CHECK(status) \ +if(status != hipSuccess) {std::cout<<"Got Status: "<