(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
committad av GitHub
förälder 00f31e593c
incheckning 7201aa321e
13 ändrade filer med 118 tillägg och 71 borttagningar
@@ -22,7 +22,11 @@
#pragma once
#include <hsa/hsa_api_trace.h>
#include "lib/rocprofiler-sdk/hsa/hsa.hpp"
#if ROCPROFILER_SDK_HSA_PC_SAMPLING > 0
# include <hsa/hsa_api_trace.h>
namespace rocprofiler
{
@@ -38,3 +42,5 @@ finalize();
} // namespace code_object
} // namespace pc_sampling
} // namespace rocprofiler
#endif