We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e39627 commit 2897e2cCopy full SHA for 2897e2c
1 file changed
Task_level_Parallelism/Data_driven/handling_deadlock/test.cpp
@@ -49,14 +49,14 @@ void test(int *in, int *out, int n) {
49
#pragma HLS interface m_axi port=in depth=100
50
#pragma HLS interface m_axi port=out depth=100
51
#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);
+ hls_thread_local hls::stream<int, 100> s1;
+ hls_thread_local hls::stream<int, 100> s2_0, s2_1, s2_2;
+ hls_thread_local hls::stream<int, 100> s3;
+
+ hls_thread_local hls::task t2(func2, s2_2, s3);
+ hls_thread_local hls::task t1(func1, s1, s2_0);
+ hls_thread_local hls::task t3_1(func3, s2_0, s2_1);
+ hls_thread_local hls::task t3_2(func3, s2_1, s2_2);
60
61
read_in (in, n, s1);
62
write_out (out, n, s3);
0 commit comments