aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c/pr99555-1.c
blob: bd33b93716bf6c426c503a99970dc003b06e85e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR99555 "[OpenMP/nvptx] Execution-time hang for simple nested OpenMP 'target'/'parallel'/'task' constructs"

// { dg-additional-options "-O0" }

#include <unistd.h> // For 'alarm'.

#include "../libgomp.c-c++-common/on_device_arch.h"

int main (void)
{
  if (on_device_arch_nvptx ())
    alarm (4); /*TODO Until resolved, make sure that we exit quickly, with error status.
		 { dg-xfail-run-if "PR99555" { offload_device_nvptx } } */

#pragma omp target
#pragma omp parallel // num_threads(1)
#pragma omp task
  ;

  return 0;
}