Skip to content

Commit

Permalink
fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrady-tt committed Jan 8, 2025
1 parent 23d7c5d commit ecd2252
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using namespace tt;

void RunFillUpAllBuffers(tt_metal::Device* device, int loop_count, bool fast_dispatch) {
void RunFillUpAllBuffers(tt_metal::IDevice* device, int loop_count, bool fast_dispatch) {
CoreCoord compute_with_storage_size = device->compute_with_storage_grid_size();
CoreCoord start_core = {0, 0};
CoreCoord end_core = {compute_with_storage_size.x - 1, compute_with_storage_size.y - 1};
Expand Down Expand Up @@ -72,7 +72,7 @@ int main(int argc, char** argv) {
// Device Setup
////////////////////////////////////////////////////////////////////////////
int device_id = 0;
tt_metal::Device* device = tt_metal::CreateDevice(device_id);
tt_metal::IDevice* device = tt_metal::CreateDevice(device_id);

const auto USE_FAST_DISPATCH = std::getenv("TT_METAL_SLOW_DISPATCH_MODE") == nullptr;

Expand Down
4 changes: 2 additions & 2 deletions tt_metal/tools/profiler/profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void DeviceProfiler::generateZoneSourceLocationsHashes() {
}

void DeviceProfiler::dumpJsonReport(
Device* device, const std::vector<std::uint32_t>& profile_buffer, const std::vector<CoreCoord>& worker_cores) {
IDevice* device, const std::vector<std::uint32_t>& profile_buffer, const std::vector<CoreCoord>& worker_cores) {
auto device_id = device->id();

// determine rpt filepath
Expand Down Expand Up @@ -609,7 +609,7 @@ void DeviceProfiler::dumpJsonReport(
json_rpt_os.close();
}

void DeviceProfiler::dumpResults(Device* device, const std::vector<CoreCoord>& worker_cores, bool lastDump) {
void DeviceProfiler::dumpResults(IDevice* device, const std::vector<CoreCoord>& worker_cores, bool lastDump) {
#if defined(TRACY_ENABLE)
ZoneScoped;

Expand Down
4 changes: 2 additions & 2 deletions tt_metal/tools/profiler/profiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ class DeviceProfiler {
void setOutputDir(const std::string& new_output_dir);

// Traverse all cores on the device and dump the device profile results
void dumpResults(Device* device, const std::vector<CoreCoord>& worker_cores, bool lastDump);
void dumpResults(IDevice* device, const std::vector<CoreCoord>& worker_cores, bool lastDump);

// Traverse all cores, producing json report with noc events
void dumpJsonReport(
Device* device, const std::vector<std::uint32_t>& profile_buffer, const std::vector<CoreCoord>& worker_cores);
IDevice* device, const std::vector<std::uint32_t>& profile_buffer, const std::vector<CoreCoord>& worker_cores);
};

} // namespace tt_metal
Expand Down

0 comments on commit ecd2252

Please sign in to comment.