Skip to content

Commit

Permalink
#0: Fix recursive bug in hash function of global sem, cb
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-aho committed Dec 10, 2024
1 parent d1a9014 commit befa6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tt_metal/impl/buffers/global_circular_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace std {

std::size_t hash<tt::tt_metal::v1::experimental::GlobalCircularBuffer>::operator()(
const tt::tt_metal::v1::experimental::GlobalCircularBuffer& global_circular_buffer) const {
return tt::stl::hash::hash_objects_with_default_seed(global_circular_buffer);
return tt::stl::hash::hash_objects_with_default_seed(global_circular_buffer.attribute_values());
}

} // namespace std
2 changes: 1 addition & 1 deletion tt_metal/impl/buffers/global_semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace std {

std::size_t hash<tt::tt_metal::GlobalSemaphore>::operator()(
const tt::tt_metal::GlobalSemaphore& global_semaphore) const {
return tt::stl::hash::hash_objects_with_default_seed(global_semaphore);
return tt::stl::hash::hash_objects_with_default_seed(global_semaphore.attribute_values());
}

} // namespace std

0 comments on commit befa6c8

Please sign in to comment.