From 8a1829d2412eee35f97766c255dde0b2c4be32ec Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Thu, 8 Feb 2024 15:15:14 +0100 Subject: [PATCH] conv2d: Use `SNRT_CLUSTER_OFFSET` --- sw/dnn/conv2d/src/conv2d.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sw/dnn/conv2d/src/conv2d.h b/sw/dnn/conv2d/src/conv2d.h index 823a980d26..57bd2947ff 100644 --- a/sw/dnn/conv2d/src/conv2d.h +++ b/sw/dnn/conv2d/src/conv2d.h @@ -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 &&