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

17 lines
275 B
C
Raw Normal View History

2022-09-19 12:39:02 +02:00
/* Copyright (c) 2022 Barcelona Supercomputing Center (BSC)
* 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++) {
#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
}
}
}
#pragma oss taskwait
2022-09-08 13:41:52 +02:00
return 0;
}