Skip to content

Commit

Permalink
#0: Replaced TT_ASSERT with ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarwalTT committed Oct 23, 2024
1 parent b1d241d commit 236c528
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "c_tensix_core.h"
#include "circular_buffer.h"
#include "common/assert.hpp"
#include "core_config.h"
#include "dataflow_api.h"
#include "debug/dprint.h"
Expand Down Expand Up @@ -36,7 +35,7 @@ void kernel_main() {
if (rt_arg != expected) {
DPRINT << "Actual runtime argument value: " << rt_arg << " Expected runtime argument value: " << expected
<< ENDL();
TT_ASSERT(0);
ASSERT(0);
while (true); // Hang kernel if values aren't correct
}
}
Expand All @@ -48,7 +47,7 @@ void kernel_main() {
if (expected_sem_val != actual_sem_val) {
DPRINT << "Actual semaphore value: " << actual_sem_val << " Expected semaphore value: " << expected_sem_val
<< ENDL();
TT_ASSERT(0);
ASSERT(0);
while (true); // Hang kernel if values aren't correct
}
}
Expand All @@ -60,7 +59,7 @@ void kernel_main() {
if (expected_cb_page_size != actual_cb_page_size) {
DPRINT << cb_idx << " Actual circular buffer page size: " << actual_cb_page_size
<< " Expected circular buffer page size: " << expected_cb_page_size << ENDL();
TT_ASSERT(0);
ASSERT(0);
while (true); // Hang kernel if values aren't correct
}
cb_idx++;
Expand All @@ -72,7 +71,8 @@ void kernel_main() {
if (common_rt_arg != expected) {
DPRINT << "Actual common runtime argument value: " << common_rt_arg
<< " Expected common runtime argument value: " << expected << ENDL();
TT_ASSERT(0);
ASSERT(0);
FWASSERT(s, p)
while (true); // Hang kernel if values aren't correct
}
}
Expand Down

0 comments on commit 236c528

Please sign in to comment.