Skip to content

Commit

Permalink
Update core.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
blozano-tt authored Jan 26, 2025
1 parent 9c05183 commit e82ccfb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ttnn/cpp/ttnn/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

namespace ttnn::core {

std::uint32_t pad_to_multiple_of_tile_size(std::uint32_t value, std::uint32_t tile_size) {
return (value + (tile_size - 1)) / tile_size * tile_size;
}

bool has_storage_type_of(const ttnn::Tensor& tensor, const ttnn::StorageType& storage_type) {
return tensor.storage_type() == storage_type;
}
Expand All @@ -30,11 +26,6 @@ void set_printoptions(const std::string& profile) {
}).value();
}

void segfault_handler(int sig) {
std::cerr << tt::assert::backtrace_to_string() << std::endl;
exit(EXIT_FAILURE);
}

void dump_stack_trace_on_segfault() {
if (std::signal(SIGSEGV, segfault_handler) == SIG_ERR) {
std::cerr << "Error: cannot handle SIGSEGV" << std::endl;
Expand Down

0 comments on commit e82ccfb

Please sign in to comment.