From e9d08db91684ecc54a16b99cf8464d9dedff31a6 Mon Sep 17 00:00:00 2001 From: Hongyu Ning Date: Fri, 6 Sep 2024 14:17:53 +0800 Subject: [PATCH] [amx] Test Enhance: move test src top folder move test source code to top folder amx to align with all other features hierarchy, for runtests.py execution alignment [Test Components] amx [Test Types] any [Supported Devices] all-generic Signed-off-by: Hongyu Ning --- BM/amx/{tmul => }/.gitignore | 0 BM/amx/Makefile | 35 ++++++++++++++--------------------- BM/amx/{tmul => }/tmul.c | 0 BM/amx/tmul/Makefile | 18 ------------------ 4 files changed, 14 insertions(+), 39 deletions(-) rename BM/amx/{tmul => }/.gitignore (100%) rename BM/amx/{tmul => }/tmul.c (100%) delete mode 100644 BM/amx/tmul/Makefile 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 0fb72d6..665d6bf 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 665d6bf..0000000 --- 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 -