ovni/test/rt/nanos6/taskfor.c

16 lines
250 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 */
2022-09-21 13:16:53 +02:00
#define _GNU_SOURCE
#include <unistd.h>
int
main(void)
2022-09-21 13:16:53 +02:00
{
#pragma oss task for
for (int i = 0; i < 1024; i++)
2022-09-21 13:16:53 +02:00
usleep(1000);
return 0;
}