Update kfdap.py

[ROCm/roctracer commit: 9f304d364f]
Este cometimento está contido em:
rkebichi criou e GitHub cometeu 2019-10-03 15:46:09 -04:00
1 ascendente 21811e45bd
cometimento d58317c710
1 ficheiro modificado
+5 -4
+5 -4
Ver ficheiro
@@ -372,10 +372,11 @@ class API_DescrParser:
self.content_h += 'struct kfd_api_data_t {\n'
self.content_h += ' uint64_t correlation_id;\n'
self.content_h += ' uint32_t phase;\n'
self.content_h += ' union {\n'
for ret_type in self.api_rettypes:
self.content_h += ' ' + ret_type + ' ' + ret_type + '_retval;\n'
self.content_h += ' };\n'
if len(self.api_rettypes) != 0:
self.content_h += ' union {\n'
for ret_type in self.api_rettypes:
self.content_h += ' ' + ret_type + ' ' + ret_type + '_retval;\n'
self.content_h += ' };\n'
self.content_h += ' union {\n'
return
if call != '-':