Skip to content

Commit

Permalink
Make N-EUREKA size parametric (spatial dims)
Browse files Browse the repository at this point in the history
Through the NNX_NEUREKA_PE_{H,W} defines.
  • Loading branch information
FrancescoConti committed Feb 19, 2024
1 parent 51868e8 commit 89da402
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions neureka/hal/neureka_task_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@
#ifndef __NEUREKA_DEFS_H__
#define __NEUREKA_DEFS_H__

/* ARHITECTURE */
/* ARCHITECTURE */

#define NEUREKA_SUBTILE_INPUT_HEIGHT_1x1 (6)
#define NEUREKA_SUBTILE_INPUT_WIDTH_1x1 (6)
#define NNX_NEUREKA_PE_H (6)
#define NNX_NEUREKA_PE_W (6)

#define NEUREKA_SUBTILE_INPUT_HEIGHT_1x1 (NNX_NEUREKA_PE_H)
#define NEUREKA_SUBTILE_INPUT_WIDTH_1x1 (NNX_NEUREKA_PE_W)
#define NEUREKA_SUBTILE_INPUT_CHANNEL_1x1 (32)

#define NEUREKA_SUBTILE_INPUT_HEIGHT_3x3 (8)
#define NEUREKA_SUBTILE_INPUT_WIDTH_3x3 (8)
#define NEUREKA_SUBTILE_INPUT_CHANNEL_3x3 (28)
#define NEUREKA_SUBTILE_INPUT_HEIGHT_3x3 (NNX_NEUREKA_PE_H+2)
#define NEUREKA_SUBTILE_INPUT_WIDTH_3x3 (NNX_NEUREKA_PE_W+2)
#define NEUREKA_SUBTILE_INPUT_CHANNEL_3x3 (32)

#define NEUREKA_SUBTILE_OUTPUT_HEIGHT (6)
#define NEUREKA_SUBTILE_OUTPUT_WIDTH (6)
#define NEUREKA_SUBTILE_OUTPUT_HEIGHT (4)
#define NEUREKA_SUBTILE_OUTPUT_WIDTH (4)
#define NEUREKA_SUBTILE_OUTPUT_CHANNEL (32)

#define NEUREKA_OUTPUT_BANDWIDTH_BYTES (32)
Expand Down

0 comments on commit 89da402

Please sign in to comment.