Skip to content

Commit 2897e2c

Browse files
author
Ramanan Radhakrishnan
committed
Switch static to hls_thread_local
1 parent 3e39627 commit 2897e2c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • Task_level_Parallelism/Data_driven/handling_deadlock

Task_level_Parallelism/Data_driven/handling_deadlock/test.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ void test(int *in, int *out, int n) {
4949
#pragma HLS interface m_axi port=in depth=100
5050
#pragma HLS interface m_axi port=out depth=100
5151
#pragma HLS dataflow
52-
static hls::stream<int, 100> s1;
53-
static hls::stream<int, 100> s2_0, s2_1, s2_2;
54-
static hls::stream<int, 100> s3;
55-
56-
static hls::task t2(func2, s2_2, s3);
57-
static hls::task t1(func1, s1, s2_0);
58-
static hls::task t3_1(func3, s2_0, s2_1);
59-
static hls::task t3_2(func3, s2_1, s2_2);
52+
hls_thread_local hls::stream<int, 100> s1;
53+
hls_thread_local hls::stream<int, 100> s2_0, s2_1, s2_2;
54+
hls_thread_local hls::stream<int, 100> s3;
55+
56+
hls_thread_local hls::task t2(func2, s2_2, s3);
57+
hls_thread_local hls::task t1(func1, s1, s2_0);
58+
hls_thread_local hls::task t3_1(func3, s2_0, s2_1);
59+
hls_thread_local hls::task t3_2(func3, s2_1, s2_2);
6060

6161
read_in (in, n, s1);
6262
write_out (out, n, s3);

0 commit comments

Comments
 (0)