From e33596b6cd92357331c69cdb90b15dec9e18cfdb Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 29 Jan 2019 23:14:57 -0600 Subject: [PATCH] return false if PROF_API is disabled [ROCm/hip commit: cc5ff70b90a5c1ae9a6e7441058d6a0389246aed] --- projects/hip/include/hip/hcc_detail/hip_prof_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_prof_api.h b/projects/hip/include/hip/hcc_detail/hip_prof_api.h index dd3c3efec9..eb3112bdb4 100644 --- a/projects/hip/include/hip/hcc_detail/hip_prof_api.h +++ b/projects/hip/include/hip/hcc_detail/hip_prof_api.h @@ -195,8 +195,8 @@ class api_callbacks_table_t { public: typedef void* act_t; typedef void* fun_t; - bool set_activity(uint32_t id, act_t fun, void* arg) { return true; } - bool set_callback(uint32_t id, fun_t fun, void* arg) { return true; } + bool set_activity(uint32_t id, act_t fun, void* arg) { return false; } + bool set_callback(uint32_t id, fun_t fun, void* arg) { return false; } }; #endif