diff --git a/BM/amx/tmul/.gitignore b/BM/amx/.gitignore similarity index 100% rename from BM/amx/tmul/.gitignore rename to BM/amx/.gitignore diff --git a/BM/amx/Makefile b/BM/amx/Makefile index 0fb72d68..665d6bf9 100644 --- a/BM/amx/Makefile +++ b/BM/amx/Makefile @@ -1,25 +1,18 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Copyright (c) 2022 Intel Corporation. - -SUBDIRS = $(shell ls -d */) - -PROXY := +# SPDX-License-Identifier: GPL-2.0 +CFLAG = -O2 -W -Wall -g -fno-strict-aliasing +LIBS = -lpthread +CC = gcc +BIN_AMX = tmul +CFILES_AMX = tmul.c all: - @for dir in $(SUBDIRS); do \ - if [ -f "$$dir/Makefile" ]; then \ - cd $$dir && \ - make || { \ - cd ..; \ - continue; \ - }; \ - cd ..; \ - fi \ - done + $(CC) $(CFLAG) $(CFILES_AMX) -o $(BIN_AMX) $(LIBS) + +fp16: CFLAG += -g -DFP16 +fp16: all clean: - @for dir in $(SUBDIRS); do \ - if [ -f "$$dir/Makefile" ]; then \ - make -C $$dir clean || continue; \ - fi \ - done + -rm $(BIN_AMX) + +.PHONY: clean + diff --git a/BM/amx/tmul/tmul.c b/BM/amx/tmul.c similarity index 100% rename from BM/amx/tmul/tmul.c rename to BM/amx/tmul.c diff --git a/BM/amx/tmul/Makefile b/BM/amx/tmul/Makefile deleted file mode 100644 index 665d6bf9..00000000 --- a/BM/amx/tmul/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -CFLAG = -O2 -W -Wall -g -fno-strict-aliasing -LIBS = -lpthread -CC = gcc -BIN_AMX = tmul -CFILES_AMX = tmul.c - -all: - $(CC) $(CFLAG) $(CFILES_AMX) -o $(BIN_AMX) $(LIBS) - -fp16: CFLAG += -g -DFP16 -fp16: all - -clean: - -rm $(BIN_AMX) - -.PHONY: clean -