Skip to content

Commit

Permalink
conv2d: Use SNRT_CLUSTER_OFFSET
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Feb 8, 2024
1 parent 33ee07f commit 8a1829d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sw/dnn/conv2d/src/conv2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -2340,10 +2340,9 @@ void conv2d_layer(const conv_layer *l) {
// Transfer tile from other cluster to memory
else {
// A cluster always loads from the previous cluster
uint32_t cl_offset = 0x00040000;
volatile uint32_t *src_synch_flag =
(void *)synch_flag - cl_offset;
double *src_ifmap = (void *)ifmap - cl_offset;
(void *)synch_flag - SNRT_CLUSTER_OFFSET;
double *src_ifmap = (void *)ifmap - SNRT_CLUSTER_OFFSET;

// Wait until previous cluster has released data
if (l->cluster2cluster &&
Expand Down

0 comments on commit 8a1829d

Please sign in to comment.