Skip to content

Commit

Permalink
#0: Update tests relaying on hard-coded event ids
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-asaigal committed Jun 28, 2024
1 parent 5208fbc commit 5dc1589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/tt_metal/tools/profiler/test_device_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def test_dispatch_cores():
ZONE_COUNT = 37
REF_COUNT_DICT = {
"grayskull": {
"Tensix CQ Dispatch": 33,
"Tensix CQ Prefetch": 36,
"Tensix CQ Dispatch": 18,
"Tensix CQ Prefetch": 21,
},
"wormhole_b0": {
"Tensix CQ Dispatch": 33,
"Tensix CQ Prefetch": 36,
"Tensix CQ Dispatch": 18,
"Tensix CQ Prefetch": 21,
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ TEST_F(CommandQueueFixture, TestEventsDataMovementWrittenToCompletionQueueInOrde
buffers.push_back(std::make_shared<Buffer>(this->device_, page_size, page_size, BufferType::DRAM));

if (data_movement_mode == DataMovementMode::WRITE) {
EnqueueWriteBuffer(this->device_->command_queue(), buffers.back(), page, false);
EnqueueWriteBuffer(this->device_->command_queue(), buffers.back(), page, true);
} else if (data_movement_mode == DataMovementMode::READ) {
EnqueueReadBuffer(this->device_->command_queue(), buffers.back(), page, false);
EnqueueReadBuffer(this->device_->command_queue(), buffers.back(), page, true);
}
}
Finish(this->device_->command_queue());
Expand Down Expand Up @@ -280,7 +280,7 @@ TEST_F(CommandQueueFixture, TestEventsMixedWriteBufferRecordWaitSynchronize) {
EXPECT_EQ(event->event_id, cmds_issued_per_cq);

std::shared_ptr<Buffer> buf = std::make_shared<Buffer>(this->device_, page_size, page_size, BufferType::DRAM);
EnqueueWriteBuffer(this->device_->command_queue(), buf, page, false);
EnqueueWriteBuffer(this->device_->command_queue(), buf, page, true);
EnqueueWaitForEvent(this->device_->command_queue(), event);

if (i % 10 == 0) {
Expand Down

0 comments on commit 5dc1589

Please sign in to comment.