From 7a0471067e3851003ae725f3e37c3a8e10dc077e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Pe=C3=B1acoba=20Veigas?= Date: Wed, 22 Jul 2020 10:44:40 +0200 Subject: [PATCH] Define BS in matmul_block.c and remove the .o in `make clean` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f8631ec..b8d9c0e 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ all: $(BIN) $(CC) -o $@ $^ $(CFLAGS) $(OMPSS_FLAGS) $(LIBS) matmul_block.$(BS)bs.o : matmul_block.c - $(CC) -c $^ -o $@ $(CPPFLAGS) $(CFLAGS) $(BLAS_CPPFLAGS) $(BLAS_LDFLAGS) + $(CC) -c $^ -o $@ $(CPPFLAGS) $(CFLAGS) -DBS=$(BS) $(BLAS_CPPFLAGS) $(BLAS_LDFLAGS) 04.matmul% : 04.matmul%.c main.c matmul_block.$(BS)bs.o $(CC) -o $@ $^ $(CFLAGS) $(OMPSS_FLAGS) -DBS=$(BS) $(LIBS) @@ -39,4 +39,4 @@ run: $(BIN) ./04.matmul_taskloop+dep $(N) $(M) $(P) $(BLOCK_SIZE) clean: - $(RM) $(BIN) + $(RM) $(BIN) matmul_block.$(BS)bs.o -- GitLab