From 8a0e7adf7897f56d5ec4b594d2ccf51fc5c1ae2f Mon Sep 17 00:00:00 2001 From: eshcherb <33529668+eshcherb@users.noreply.github.com> Date: Sat, 4 Apr 2020 15:10:28 -0500 Subject: [PATCH] adding HIP_PROF version macro (#2000) [ROCm/clr commit: e524d1d54a248c62a5a073c4438e08c0e7222931] --- projects/clr/hipamd/hip_prof_gen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/hip_prof_gen.py b/projects/clr/hipamd/hip_prof_gen.py index 567fba0d4a..38b7aaeb6e 100755 --- a/projects/clr/hipamd/hip_prof_gen.py +++ b/projects/clr/hipamd/hip_prof_gen.py @@ -306,6 +306,7 @@ def generate_prof_header(f, api_map, opts_map): f.write('// automatically generated sources\n') f.write('#ifndef _HIP_PROF_STR_H\n'); f.write('#define _HIP_PROF_STR_H\n'); + f.write('#define HIP_PROF_VER 1\n') # Generating dummy macro for non-public API f.write('\n// Dummy API primitives\n') @@ -389,7 +390,7 @@ def generate_prof_header(f, api_map, opts_map): # Generating the method for the API string, name and parameters f.write('\n') - f.write('#if ENABLE_HIP_API_STRING\n') + f.write('#if HIP_PROF_HIP_API_STRING\n') f.write('#include \n'); f.write('#include \n'); f.write('// HIP API string method, method name and parameters\n') @@ -410,7 +411,7 @@ def generate_prof_header(f, api_map, opts_map): f.write(' };\n') f.write(' return strdup(oss.str().c_str());\n') f.write('};\n') - f.write('#endif // ENABLE_HIP_API_STRING\n') + f.write('#endif // HIP_PROF_HIP_API_STRING\n') f.write('#endif // _HIP_PROF_STR_H\n');