Cleanup roctracer_hsa.h
Remove declarations that are not meant to be part of the public API.
Change-Id: I47d9e83bf41bdb2f7ac25a1507200b51c616049b
[ROCm/roctracer commit: 05d3cf3529]
This commit is contained in:
zatwierdzone przez
Laurent Morichetti
rodzic
09472d6563
commit
748d8b5cec
@@ -21,10 +21,12 @@
|
||||
#ifndef INC_ROCTRACER_HSA_H_
|
||||
#define INC_ROCTRACER_HSA_H_
|
||||
|
||||
#include <roctracer.h>
|
||||
|
||||
#include <hsa/hsa.h>
|
||||
#include <hsa/hsa_ext_amd.h>
|
||||
#include <hsa_prof_str.h>
|
||||
|
||||
#include <roctracer.h>
|
||||
#include <rocprofiler/activity.h>
|
||||
|
||||
// HSA OP ID enumeration
|
||||
@@ -36,31 +38,9 @@ enum hsa_op_id_t {
|
||||
HSA_OP_ID_NUMBER
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <iostream>
|
||||
#include <hsa/hsa_api_trace.h>
|
||||
|
||||
namespace roctracer {
|
||||
namespace hsa_support {
|
||||
enum { HSA_OP_ID_async_copy = 0 };
|
||||
|
||||
struct ops_properties_t {
|
||||
struct hsa_ops_properties_t {
|
||||
void* table;
|
||||
void* reserved1[3];
|
||||
};
|
||||
|
||||
}; // namespace hsa_support
|
||||
|
||||
typedef hsa_support::ops_properties_t hsa_ops_properties_t;
|
||||
}; // namespace roctracer
|
||||
|
||||
#include "hsa_ostream_ops.h"
|
||||
|
||||
|
||||
#else // !__cplusplus
|
||||
typedef void* hsa_amd_queue_intercept_handler;
|
||||
typedef void* hsa_amd_runtime_queue_notifier;
|
||||
#endif //! __cplusplus
|
||||
|
||||
#include <hsa_prof_str.h>
|
||||
#endif // INC_ROCTRACER_HSA_H_
|
||||
|
||||
@@ -318,6 +318,13 @@ class API_DescrParser:
|
||||
self.h_content += '#define ' + out_macro + '\n'
|
||||
|
||||
self.h_content += self.add_section('API ID enumeration', ' ', self.gen_id_enum)
|
||||
|
||||
self.h_content += '/* Declarations of APIs intended for use only by tools. */\n'
|
||||
self.h_content += 'typedef void (*hsa_amd_queue_intercept_packet_writer)(const void*, uint64_t);\n'
|
||||
self.h_content += 'typedef void (*hsa_amd_queue_intercept_handler)(const void*, uint64_t, uint64_t, void*,\n'
|
||||
self.h_content += ' hsa_amd_queue_intercept_packet_writer);\n'
|
||||
self.h_content += 'typedef void (*hsa_amd_runtime_queue_notifier)(const hsa_queue_t*, hsa_agent_t, void*);\n'
|
||||
|
||||
self.h_content += self.add_section('API arg structure', ' ', self.gen_arg_struct)
|
||||
self.h_content += self.add_section('API output stream', ' ', self.gen_out_stream)
|
||||
self.h_content += '#endif /* ' + out_macro + ' */\n'
|
||||
@@ -486,6 +493,7 @@ class API_DescrParser:
|
||||
content = ''
|
||||
if n == -1:
|
||||
content += '#ifdef __cplusplus\n'
|
||||
content += '#include <hsa_ostream_ops.h>\n'
|
||||
content += 'typedef std::pair<uint32_t, hsa_api_data_t> hsa_api_data_pair_t;\n'
|
||||
content += 'inline std::ostream& operator<< (std::ostream& out, const hsa_api_data_pair_t& data_pair) {\n'
|
||||
content += ' const uint32_t cid = data_pair.first;\n'
|
||||
|
||||
@@ -27,8 +27,9 @@
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
|
||||
#include <cxxabi.h> /* names denangle */
|
||||
#include <cxxabi.h> /* kernel name demangling */
|
||||
#include <dirent.h>
|
||||
#include <hsa/hsa_api_trace.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user