From 5f2ce504eac80c65bf1519469303caf4096e5264 Mon Sep 17 00:00:00 2001 From: Fritz Stracke Date: Wed, 24 May 2023 10:47:34 +0200 Subject: [PATCH] Repair make clean make clean would encounter an error in cpu. fixed. make clean now removes bin directory. Signed-off-by: Fritz Stracke --- Makefile | 3 +++ cpu/Makefile | 2 +- tests/cpu/Makefile | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/cpu/Makefile diff --git a/Makefile b/Makefile index 11482830..54f498ff 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ clean: $(MAKE) -C cpu clean @echo -e "\033[31m----> Cleaning up test kernels\033[0m" $(MAKE) -C tests clean + @echo -e "\033[31m----> Removing bin...\033[0m" + rm -rf bin + @echo -e "\033[31m All done!\033[0m" cuda-gdb: @echo -e "\033[36m----> Building submodules\033[0m" diff --git a/cpu/Makefile b/cpu/Makefile index a2d38223..cc6cbd2f 100644 --- a/cpu/Makefile +++ b/cpu/Makefile @@ -80,7 +80,7 @@ LIB_FLAGS += -L$(CUDA_SRC)/lib64 CC_FLAGS += -std=gnu99 $(INC_FLAGS) -O2 # TODO: use extern in header files instead of direct definition e.g. in cpu-common.h to remove -fcommon flag CC_FLAGS += -fcommon -LD_FLAGS = $(LIB_FLAGS) -ltirpc -ldl -lcrypto -lelf +LD_FLAGS = $(LIB_FLAGS) -ltirpc -ldl -lcrypto -lelf ifdef WITH_DEBUG # use ASAN_OPTIONS=protect_shadow_gap=0 LSAN_OPTIONS=fast_unwind_on_malloc=0 when running diff --git a/tests/cpu/Makefile b/tests/cpu/Makefile new file mode 100644 index 00000000..ab492786 --- /dev/null +++ b/tests/cpu/Makefile @@ -0,0 +1,7 @@ +.PHONY: all clean + +all: + +clean: + $(MAKE) -C cubin clean + $(MAKE) -C unit clean