Remove unnecessary unknown gfx
Tento commit je obsažen v:
@@ -1,6 +1,6 @@
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_SOURCES pc_record_interface.cpp)
|
||||
set(ROCPROFILER_LIB_PC_SAMPLING_PARSER_HEADERS
|
||||
correlation.hpp gfx9.hpp gfx11.hpp gfx_unknown.hpp parser_types.h pc_record_interface.hpp
|
||||
correlation.hpp gfx9.hpp gfx11.hpp parser_types.h pc_record_interface.hpp
|
||||
rocr.h translation.hpp)
|
||||
|
||||
target_sources(
|
||||
|
||||
@@ -299,8 +299,6 @@ pcsample_status_t inline parse_buffer(generic_sample_t* buffer,
|
||||
parseSample_func = _parse_buffer<GFX9>;
|
||||
else if(gfxip_major == 11)
|
||||
parseSample_func = _parse_buffer<GFX11>;
|
||||
else if(gfxip_major == 0)
|
||||
parseSample_func = _parse_buffer<gfx_unknown>;
|
||||
else
|
||||
return PCSAMPLE_STATUS_INVALID_GFXIP;
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@ PCSamplingParserContext::parse(const upcoming_samples_t& upcoming,
|
||||
auto parseSample_func = &PCSamplingParserContext::_parse<GFX9>;
|
||||
if(gfxip_major == 11)
|
||||
parseSample_func = &PCSamplingParserContext::_parse<GFX11>;
|
||||
else if(gfxip_major == 0)
|
||||
parseSample_func = &PCSamplingParserContext::_parse<gfx_unknown>;
|
||||
else if(gfxip_major != 9)
|
||||
return PCSAMPLE_STATUS_INVALID_GFXIP;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
* As an intermediate step, "midway_signal" signals when it's safe to reuse/delete "data".
|
||||
* @param[in] upcoming Metadata of upcoming samples
|
||||
* @param[in] data Pointer containing the raw hardware samples. Must match upcoming.num_samples.
|
||||
* @param[in] gfxip_major GFXIP of these samples (GFX9==9/GFX11==11/gfx_unknown==12).
|
||||
* @param[in] gfxip_major GFXIP of these samples (GFX9==9/GFX11==11).
|
||||
* @param[in] midway_signal notifies_all when the samples have been processed.
|
||||
* @param[in] bFlushCorrelationIds Set to true if this is the last batch from a ROCr buffer.
|
||||
* @returns PCSAMPLE_STATUS_SUCCESS on success.
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <cstring>
|
||||
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/gfx11.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/gfx_unknown.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/gfx9.hpp"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/parser_types.h"
|
||||
#include "lib/rocprofiler-sdk/pc_sampling/parser/rocr.h"
|
||||
@@ -108,30 +107,6 @@ copyStochasticSample<GFX11>(const perf_sample_snapshot_v1& sample)
|
||||
return ret;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline pcsample_v1_t
|
||||
copyStochasticSample<gfx_unknown>(const perf_sample_snapshot_v1& sample)
|
||||
{
|
||||
pcsample_v1_t ret = copySampleHeader<perf_sample_snapshot_v1>(sample);
|
||||
ret.flags.valid = sample.perf_snapshot_data & 0x1;
|
||||
// Check wave_id matches snapshot_wave_id
|
||||
|
||||
ret.flags.has_wave_cnt = true;
|
||||
ret.flags.has_stall_reason = true;
|
||||
|
||||
ret.wave_issued = sample.perf_snapshot_data >> 1;
|
||||
ret.snapshot.inst_type = sample.perf_snapshot_data >> 2;
|
||||
ret.snapshot.reason_not_issued = (sample.perf_snapshot_data >> 6) & 0x7;
|
||||
|
||||
ret.wave_count = sample.perf_snapshot_data1 & 0x3F;
|
||||
ret.snapshot.arb_state_issue = (sample.perf_snapshot_data1 >> 6) & 0xFF;
|
||||
ret.snapshot.arb_state_stall = (sample.perf_snapshot_data1 >> 14) & 0xFF;
|
||||
|
||||
ret.flags.has_memory_counter = true;
|
||||
ret.memory_counters.raw = sample.perf_snapshot_data2;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define BITSHIFT(sname) out |= ((in >> GFX::sname) & 1) << PCSAMPLE::sname
|
||||
|
||||
template <typename GFX>
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele