From 0404304803c53259332a71de818c580d8c7c506d Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 1 Dec 2023 17:13:09 +0100 Subject: [PATCH] Add task labels to rt-nodes-taskiter test --- test/rt/nodes/taskiter.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/rt/nodes/taskiter.c b/test/rt/nodes/taskiter.c index 7d4aead..0ab32c8 100644 --- a/test/rt/nodes/taskiter.c +++ b/test/rt/nodes/taskiter.c @@ -10,17 +10,20 @@ int main(void) { int A; - #pragma oss task out(A) + #pragma oss task out(A) label("init") A = 1; - #pragma oss taskiter in(A) out(A) + #pragma oss taskiter in(A) out(A) label("iter") for (int i = 0; i < 10; i++) { - #pragma oss task in(A) + #pragma oss task in(A) label("sleep") sleep_us(10 + A); - #pragma oss task out(A) + #pragma oss task out(A) label ("add") A = A + 1; } - # pragma oss task in(A) + # pragma oss task in(A) label("print") printf("A=%d\n", A); + + #pragma oss taskwait + return 0; }