From 4f4701c3232e14608ae86cdf783a2df565159919 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/hip commit: e4a1c49e7243ede15ee44a09fd7df7133812e6ec] --- projects/hip/hip_prof_gen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/hip/hip_prof_gen.py b/projects/hip/hip_prof_gen.py index 567fba0d4a..38b7aaeb6e 100755 --- a/projects/hip/hip_prof_gen.py +++ b/projects/hip/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');