(IMPORTANT: AFAR V ) Hide PC sampling if HSA does not support it. (#881)

* Hide PC sampling if HSA does not support it.

* missing hsa.hpp include
This commit is contained in:
Vladimir Indic
2024-05-29 03:02:14 +02:00
committed by GitHub
parent 00f31e593c
commit 7201aa321e
13 changed files with 118 additions and 71 deletions
@@ -22,14 +22,18 @@
#pragma once
#include "lib/rocprofiler-sdk/context/context.hpp"
#include "lib/rocprofiler-sdk/hsa/hsa.hpp"
#include <rocprofiler-sdk/fwd.h>
#include <rocprofiler-sdk/pc_sampling.h>
#if ROCPROFILER_SDK_HSA_PC_SAMPLING > 0
#include <hsa/hsa_api_trace.h>
# include "lib/rocprofiler-sdk/context/context.hpp"
#include <atomic>
# include <rocprofiler-sdk/fwd.h>
# include <rocprofiler-sdk/pc_sampling.h>
# include <hsa/hsa_api_trace.h>
# include <atomic>
namespace rocprofiler
{
@@ -64,3 +68,5 @@ rocprofiler_status_t
flush_internal_agent_buffers(rocprofiler_buffer_id_t buffer_id);
} // namespace pc_sampling
} // namespace rocprofiler
#endif