Skip to content

Commit

Permalink
Makefile generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Boehm committed Mar 3, 2023
1 parent 44cc675 commit dde83e0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.PHONY: all build debug clean profile bench

CMAKE := cmake
NINJA := ninja

BUILD_DIR := build
BENCHMARK_DIR := benchmark_results
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ channels:
- conda-forge
dependencies:
- cmake
- ninja
- python
- matplotlib
- seaborn
Expand Down
2 changes: 1 addition & 1 deletion scripts/kernel_10_autotuner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ sed -i "s/const uint K10_TM = .*/const uint K10_TM = $TM;/" $RUNNER
sed -i "s/const uint K10_TN = .*/const uint K10_TN = $TN;/" $RUNNER

# Rebuild the program
ninja
make

echo "($CONFIG_NUM/$TOTAL_CONFIGS): BK=$BK BM=$BM BN=$BN WM=$WM WN=$WN WN_ITER=$WN_ITER TM=$TM TN=$TN NUM_THREADS=$NUM_THREADS" |& tee -a $OUTPUT
# Run the benchmark and get the result
Expand Down
2 changes: 1 addition & 1 deletion scripts/kernel_9_autotuner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for bk in ${BK_VALUES[@]}; do
sed -i "s/const int K9_NUM_THREADS = .*/const int K9_NUM_THREADS = $nt;/" $KERNEL

# Rebuild the program
ninja
make

echo "($CONFIG_NUM/$TOTAL_CONFIGS): BK=$bk TM=$tm TN=$tn BM=$bm BN=$bn NUM_THREADS=$nt" |& tee -a $OUTPUT
# Run the benchmark and get the result
Expand Down

0 comments on commit dde83e0

Please sign in to comment.