Skip to content

Commit 9088d9f

Browse files
committed
removing non-existent struct members from test
1 parent da18912 commit 9088d9f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

projects/aqlprofile/src/pm4/tests/trace_config_test.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class TraceConfigTest : public ::testing::Test {
88
void SetUp() override {
99
// Setup default configuration
1010
config.sampleRate = 1000;
11-
config.spm_se_number_total = 4; // Typical number of shader engines
11+
config.se_number = 4; // Use se_number instead of spm_se_number_total
1212
config.se_mask = 0x0F; // All 4 SEs enabled
1313
config.capacity_per_se = 0x2000;
1414
config.capacity_per_disabled_se = 0x1000;
@@ -27,8 +27,7 @@ TEST_F(TraceConfigTest, DefaultValues) {
2727
EXPECT_EQ(default_config.sampleRate, 625);
2828
EXPECT_EQ(default_config.perfMASK, ~0u);
2929
EXPECT_TRUE(default_config.spm_sq_32bit_mode);
30-
EXPECT_TRUE(default_config.spm_kfd_mode);
31-
EXPECT_FALSE(default_config.mi100);
30+
EXPECT_FALSE(default_config.spm_has_core1);
3231
EXPECT_EQ(default_config.se_mask, 0x11);
3332
}
3433

@@ -118,25 +117,21 @@ TEST_F(TraceConfigTest, PerformanceConfiguration) {
118117
TEST_F(TraceConfigTest, ConcurrentConfiguration) {
119118
// Test concurrent kernel configuration
120119
config.concurrent = 2;
121-
config.spm_kfd_mode = true;
122-
config.mi100 = true;
123120

124121
// Configure per-SE capacities for concurrent mode
125122
config.capacity_per_se = 0x4000;
126123
config.capacity_per_disabled_se = 0x2000;
127124

128125
// Setup multiple SEs with different target CUs
129-
for (uint32_t se = 0; se < config.spm_se_number_total; se++) {
126+
for (uint32_t se = 0; se < config.se_number; se++) {
130127
config.target_cu_per_se[se] = se % 2 ? -1 : se; // Alternate between enabled/disabled
131128
config.se_base_addresses[se] = 0x1000 * (se + 1);
132129
}
133130

134131
EXPECT_EQ(config.concurrent, 2);
135-
EXPECT_TRUE(config.spm_kfd_mode);
136-
EXPECT_TRUE(config.mi100);
137132

138133
// Verify SE configuration in concurrent mode
139-
for (uint32_t se = 0; se < config.spm_se_number_total; se++) {
134+
for (uint32_t se = 0; se < config.se_number; se++) {
140135
if (se % 2 == 0) {
141136
EXPECT_EQ(config.GetTargetCU(se), se);
142137
EXPECT_EQ(config.GetCapacity(se), config.capacity_per_se);

0 commit comments

Comments
 (0)