(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:
gecommit door
GitHub
bovenliggende
00f31e593c
commit
7201aa321e
@@ -371,11 +371,13 @@ WriteInterceptor(const void* packets,
|
||||
CreateBarrierPacket(nullptr, nullptr, transformed_packets);
|
||||
}
|
||||
|
||||
#if ROCPROFILER_SDK_HSA_PC_SAMPLING > 0
|
||||
if(pc_sampling::is_pc_sample_service_configured(queue.get_agent().get_rocp_agent()->id))
|
||||
{
|
||||
transformed_packets.emplace_back(pc_sampling::hsa::generate_marker_packet_for_kernel(
|
||||
corr_id, tracing_data_v.external_correlation_ids));
|
||||
}
|
||||
#endif
|
||||
|
||||
transformed_packets.emplace_back(kernel_pkt);
|
||||
|
||||
|
||||
Verwijs in nieuw issue
Block a user