Skip to content

Commit

Permalink
update gemmx sw (#69)
Browse files Browse the repository at this point in the history
* update gemmx sw

* add utils

* add app in makefile
  • Loading branch information
xiaoling-yi authored and IveanEx committed Nov 2, 2024
1 parent 87dfcb7 commit 68acc47
Show file tree
Hide file tree
Showing 13 changed files with 1,469 additions and 7 deletions.
8 changes: 8 additions & 0 deletions target/sim/sw/device/apps/snax/snax-data-reshuffler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
#
# Xiaoling Yi <[email protected]>

<<<<<<<< HEAD:target/sim/sw/device/apps/snax/snax-data-reshuffler/Makefile
APP = snax-data-reshuffler
========
APP = snax-gemmx-conv
>>>>>>>> 32685b4 (update gemmx sw (#69)):target/sim/sw/device/apps/snax/snax-gemmx-conv/Makefile

INCDIRS = data

Expand All @@ -13,7 +17,11 @@ INCDIRS += ../../../snax/data-reshuffler/include
# Include this binary in the final build
RISCV_LDFLAGS += ../../../snax/data-reshuffler/build/snax-data-reshuffler-lib.o

<<<<<<<< HEAD:target/sim/sw/device/apps/snax/snax-data-reshuffler/Makefile
SRCS = src/snax-data-reshuffler.c
========
SRCS = src/snax-gemmx-conv.c
>>>>>>>> 32685b4 (update gemmx sw (#69)):target/sim/sw/device/apps/snax/snax-gemmx-conv/Makefile

include ./data/Makefile
include ../../common.mk
Expand Down
29 changes: 29 additions & 0 deletions target/sim/sw/device/apps/snax/snax-gemmx-conv/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2023 KU Leuven.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# Xiaoling Yi <[email protected]>

<<<<<<<< HEAD:target/sim/sw/device/apps/snax/snax-data-reshuffler/Makefile
APP = snax-data-reshuffler
========
APP = snax-gemmx-conv
>>>>>>>> 32685b4 (update gemmx sw (#69)):target/sim/sw/device/apps/snax/snax-gemmx-conv/Makefile

INCDIRS = data

INCDIRS += ../../../snax/data-reshuffler/include

# Include this binary in the final build
RISCV_LDFLAGS += ../../../snax/data-reshuffler/build/snax-data-reshuffler-lib.o

<<<<<<<< HEAD:target/sim/sw/device/apps/snax/snax-data-reshuffler/Makefile
SRCS = src/snax-data-reshuffler.c
========
SRCS = src/snax-gemmx-conv.c
>>>>>>>> 32685b4 (update gemmx sw (#69)):target/sim/sw/device/apps/snax/snax-gemmx-conv/Makefile

include ./data/Makefile
include ../../common.mk

$(DEP): $(DATA_H)
23 changes: 23 additions & 0 deletions target/sim/sw/device/apps/snax/snax-gemmx-conv/data/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 KU Leuven.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# Xiaoling Yi <[email protected]>

# Usage of absolute paths is required to externally include this Makefile
MK_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
DATA_DIR := $(realpath $(MK_DIR))

DATA_CFG ?= $(DATA_DIR)/params.hjson

DATA_H = $(DATA_DIR)/data.h

$(DATA_H): $(DATA_DIR)/datagen.py $(DATA_CFG)
$< -c $(DATA_CFG) > $@

.PHONY: clean-data clean

clean-data:
rm -f $(DATA_H)

clean: clean-data
Loading

0 comments on commit 68acc47

Please sign in to comment.