forked from pulp-platform/snitch_cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data generation for both simple vec examples (pulp-platform#36)
* sw: Move files into snax-mac-simple folder * sw: Fix relative paths for CI after move * sw: Rename files for move * sw: Adapt relative paths for compilation * sw: Rename snax-mac-simple to untiled * sw: Use datagen to drive untiled example * sw: Fix C linting
- Loading branch information
1 parent
a4ab575
commit 84d163e
Showing
10 changed files
with
56 additions
and
48 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
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
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 |
---|---|---|
|
@@ -2,10 +2,28 @@ | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Ryan Antonio <[email protected]> | ||
# Gianna Paulin <[email protected]> | ||
# Josse Van Delm <[email protected]> | ||
|
||
APP = snax-mac-simple | ||
SRCS = src/snax-mac-simple.c | ||
INCDIRS = data | ||
# Usage of absolute paths is required to externally include this Makefile | ||
MK_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
SRC_DIR := $(realpath $(MK_DIR)/$(APP)/src) | ||
|
||
include ../common.mk | ||
INCDIRS += $(SRC_DIR) | ||
|
||
SRCS = $(realpath $(SRC_DIR)/$(APP).c) | ||
|
||
LENGTH ?= 20 | ||
TILE_SIZE ?= 4 | ||
|
||
DATA_H = $(SRC_DIR)/data.h | ||
|
||
$(DATA_H): $(MK_DIR)/datagen.py | ||
$< --length=$(LENGTH) --tile_size=$(TILE_SIZE) > $@ | ||
|
||
.PHONY: clean-data clean | ||
|
||
clean-data: | ||
rm -f $(DATA_H) | ||
|
||
clean: clean-data |
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
13 changes: 13 additions & 0 deletions
13
target/snitch_cluster/sw/apps/snax-mac-simple/tiled/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,13 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Ryan Antonio <[email protected]> | ||
# Josse Van Delm <[email protected]> | ||
|
||
APP = tiled | ||
|
||
include ../Makefile | ||
include ../../common.mk | ||
|
||
$(DEP): $(DATA_H) |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
target/snitch_cluster/sw/apps/snax-mac-simple/untiled/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,12 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Ryan Antonio <[email protected]> | ||
|
||
APP = untiled | ||
|
||
include ../../common.mk | ||
include ../Makefile | ||
|
||
$(DEP): $(DATA_H) |
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.