forked from pulp-platform/occamy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update gemmx sw * add utils * add app in makefile
- Loading branch information
1 parent
87dfcb7
commit 68acc47
Showing
13 changed files
with
1,469 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
target/sim/sw/device/apps/snax/snax-gemmx-conv/data/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.