Skip to content

Commit

Permalink
Repair make clean
Browse files Browse the repository at this point in the history
make clean would encounter an error in cpu. fixed.
make clean now removes bin directory.

Signed-off-by: Fritz Stracke <[email protected]>
  • Loading branch information
fstracke committed May 24, 2023
1 parent 060c70b commit 5f2ce50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions tests/cpu/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: all clean

all:

clean:
$(MAKE) -C cubin clean
$(MAKE) -C unit clean

0 comments on commit 5f2ce50

Please sign in to comment.