-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9956: single device trace run perf gen passing
- Loading branch information
1 parent
bd1c108
commit c5672a3
Showing
3 changed files
with
73 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
// SPDX-FileCopyrightText: © 2023 Tenstorrent Inc. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#if defined(TRACY_ENABLE) | ||
|
||
#define TracyTTMetalBeginTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_BEGIN: {}, {}`", device_id, trace_id); \ | ||
std::string trace_message = fmt::format("`TT_METAL_TRACE_BEGIN: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalEndTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_END: {}, {}`", device_id, trace_id); \ | ||
std::string trace_message = fmt::format("`TT_METAL_TRACE_END: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalReplayTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_REPLAY: {}, {}`", device_id, trace_id); \ | ||
std::string trace_message = fmt::format("`TT_METAL_TRACE_REPLAY: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
|
||
#define TracyTTMetalReleaseTrace( device_id, trace_id ) \ | ||
std::string trace_message = fmt::format("`TT_DNN_TRACE_RELEASE: {}, {}`", device_id, trace_id); \ | ||
std::string trace_message = fmt::format("`TT_METAL_TRACE_RELEASE: {}, {}`", device_id, trace_id); \ | ||
TracyMessage(trace_message.c_str(), trace_message.size()); | ||
#else | ||
|
||
#define TracyTTMetalBeginTrace( device_id, trace_id ) | ||
#define TracyTTMetalEndTrace( device_id, trace_id ) | ||
#define TracyTTMetalReplayTrace( device_id, trace_id ) | ||
#define TracyTTMetalRelkaseTrace( device_id, trace_id ) | ||
#define TracyTTMetalReleaseTrace( device_id, trace_id ) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters