ovni/test/rt/nanos6/taskfor.c

17 lines
278 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 */
2022-09-21 13:16:53 +02:00
#define _GNU_SOURCE
#include <unistd.h>
#include "compat.h"
2022-09-21 13:16:53 +02:00
int
main(void)
2022-09-21 13:16:53 +02:00
{
2023-02-27 13:39:14 +01:00
#pragma oss task for
for (int i = 0; i < 1024; i++)
sleep_us(1000);
2022-09-21 13:16:53 +02:00
return 0;
}