ovni/test/rt/nanos6/several-tasks.c

17 lines
283 B
C
Raw Permalink Normal View History

2023-02-27 13:40:20 +01:00
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
2022-09-19 12:39:02 +02:00
* SPDX-License-Identifier: GPL-3.0-or-later */
int
main(void)
2022-09-08 13:41:52 +02:00
{
for (int i = 0; i < 5000; i++) {
2023-02-27 13:39:14 +01:00
#pragma oss task
2022-09-08 13:41:52 +02:00
{
for (volatile long j = 0; j < 10000L; j++) {
2022-09-08 13:41:52 +02:00
}
}
}
2023-02-27 13:39:14 +01:00
#pragma oss taskwait
2022-09-08 13:41:52 +02:00
return 0;
}