SWDEV-459693: Allowing runtime kernels for codeobjects in featureTests
Change-Id: I809abcefaa320a3dee6a9d9fc8843162e3e5930e
[ROCm/rocprofiler commit: 4ef523c84a]
Этот коммит содержится в:
@@ -313,8 +313,8 @@ att_parsed_input_t GetATTParams() {
|
||||
std::unordered_map<std::string, uint32_t> default_params = {
|
||||
{"SE_MASK", 0x111111}, // One every 4 SEs, by default
|
||||
{"SIMD_SELECT", 0x3}, // 0x3 works for both gfx9 and Navi
|
||||
{"BUFFER_SIZE", 0x10000000}, // 2^28 == 256MB
|
||||
{"ISA_CAPTURE_MODE", static_cast<uint32_t>(ROCPROFILER_CAPTURE_SYMBOLS_ONLY)}};
|
||||
{"BUFFER_SIZE", 0xA000000}, // 160MB
|
||||
{"ISA_CAPTURE_MODE", static_cast<uint32_t>(ROCPROFILER_CAPTURE_COPY_MEMORY)}};
|
||||
|
||||
std::ifstream trace_file(path);
|
||||
if (!trace_file.is_open()) {
|
||||
|
||||
@@ -606,18 +606,18 @@ TEST_F(CodeobjTest, WhenRunningProfilerWithCodeobjCapture) {
|
||||
rocprofiler_codeobj_capture_get(id, &capture);
|
||||
EXPECT_EQ(ROCPROFILER_STATUS_SUCCESS, result);
|
||||
|
||||
EXPECT_GE(capture.count, 1);
|
||||
bool bCaptured_itself = false;
|
||||
EXPECT_GE(capture.count, 2);
|
||||
int capture_count = 0;
|
||||
|
||||
for (int i = 0; i < (int)capture.count; i++) {
|
||||
const char* path = capture.symbols[i].filepath;
|
||||
if (!path) continue;
|
||||
std::string fpath(path);
|
||||
size_t pos = fpath.find("runFeatureTests#offset=");
|
||||
size_t pos = fpath.find("#offset=");
|
||||
if (pos != std::string::npos && fpath.find("&size=", pos) != std::string::npos)
|
||||
bCaptured_itself = true;
|
||||
capture_count ++;
|
||||
}
|
||||
EXPECT_EQ(bCaptured_itself, true);
|
||||
EXPECT_GE(capture_count, 2);
|
||||
|
||||
TearDownRocprofiler();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user