From 176ff824d1142afaad1e26702d043ffae40cb763 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 23 Jun 2017 10:39:16 -0500 Subject: [PATCH] Add option to pass names to HCC dispatch API (for debug) --- src/hip_module.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hip_module.cpp b/src/hip_module.cpp index 2a3bfabc28..b8c032da27 100644 --- a/src/hip_module.cpp +++ b/src/hip_module.cpp @@ -451,7 +451,13 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, hc::completion_future cf; lp.av->dispatch_hsa_kernel(&aql, config[1] /* kernarg*/, kernArgSize, - (startEvent || stopEvent) ? &cf : nullptr); + (startEvent || stopEvent) ? &cf : nullptr +#define USE_NAMED_KERNEL 0 +#if USE_NAMED_KERNEL + , f->_name.c_str() +#endif + ); + if (startEvent) {