Skip to content

Commit

Permalink
#4839: simpler hugepage check
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed Jan 19, 2024
1 parent a974de4 commit 5b08440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ set_up_kernels/clean:
python3 $(TT_METAL_HOME)/scripts/set_up_kernels.py --short clean

hugepage-check:
bash -c "python3.8 $(TT_METAL_HOME)/infra/machine_setup/scripts/setup_hugepages.py check" || (echo "$?"; exit 1)
bash -c "[ ! `cat /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages` -eq 0 ]" || (echo "Hugepages not setup correctly!" && exit 1)

ifeq ($(ENABLE_PROFILER), 1)
CFLAGS += -DPROFILER
Expand Down

0 comments on commit 5b08440

Please sign in to comment.