Skip to content

Commit 45d74fe

Browse files
authored
[UR] fix ur_bool_t printing (#19041)
ur_bool_t was being printed as a c-style string, which led to random characters in traces where boolean values should have been.
1 parent 4a2b9c0 commit 45d74fe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

unified-runtime/include/ur_print.hpp

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unified-runtime/scripts/templates/print.hpp.mako

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ template <typename T> inline ${x}_result_t printTagged(std::ostream &os, const v
194194
%endfor
195195
} // namespace ${x}::details
196196

197+
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const ur_bool_t value);
197198
%for spec in specs:
198199
%for obj in spec['objects']:
199200
%if re.match(r"enum", obj['type']):

0 commit comments

Comments
 (0)