Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gemmx sw (#69) #80

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading