hip_api_name fixed to be inline to suppress not used warning (#1194)

[ROCm/hip commit: e72893a771]
Ta zmiana jest zawarta w:
eshcherb authored and Maneesh Gupta committed 2019-06-30 03:38:43 +00:00
1 rodzic 8e8470a273
złożenie 9a1e96321e
Plik 1 zmieniony
+1 -1
+1 -1
Wyświetl plik
@@ -333,7 +333,7 @@ def generate_prof_header(f, api_map, opts_map):
# Generating the callbacks ID enumaration
f.write('\n// Return HIP API string\n')
f.write('static const char* hip_api_name(const uint32_t& id) {\n')
f.write('static inline const char* hip_api_name(const uint32_t& id) {\n')
f.write(' switch(id) {\n')
for name in api_map.keys():
f.write(' case HIP_API_ID_' + name + ': return "' + name + '";\n')