-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hero: Patch to remove snrt_global_reduction_dma from snRuntime
- Loading branch information
Showing
5 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
vendor/patches/snitch/00_remove_snrt_global_reduction_dma.patch
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,31 @@ | ||
diff --git a/sw/snRuntime/src/sync.c b/sw/snRuntime/src/sync.c | ||
index 10d6bd6..79bf9e2 100644 | ||
--- a/sw/snRuntime/src/sync.c | ||
+++ b/sw/snRuntime/src/sync.c | ||
@@ -28,5 +28,7 @@ extern void snrt_global_barrier(); | ||
|
||
extern void snrt_partial_barrier(snrt_barrier_t *barr, uint32_t n); | ||
|
||
+/* | ||
extern void snrt_global_reduction_dma(double *dst_buffer, double *src_buffer, | ||
size_t len); | ||
+*/ | ||
\ No newline at end of file | ||
diff --git a/sw/snRuntime/src/sync.h b/sw/snRuntime/src/sync.h | ||
index 433289b..4019931 100644 | ||
--- a/sw/snRuntime/src/sync.h | ||
+++ b/sw/snRuntime/src/sync.h | ||
@@ -122,6 +122,7 @@ inline void snrt_partial_barrier(snrt_barrier_t *barr, uint32_t n) { | ||
|
||
// Assumes the dst and src buffers are at the same offset in the TCDM of every | ||
// cluster | ||
+/* | ||
inline void snrt_global_reduction_dma(double *dst_buffer, double *src_buffer, | ||
size_t len) { | ||
// If we have a single cluster the reduction degenerates to a memcpy | ||
@@ -176,3 +177,4 @@ inline void snrt_global_reduction_dma(double *dst_buffer, double *src_buffer, | ||
} | ||
} | ||
} | ||
+*/ | ||
\ No newline at end of file |
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
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