4dd9e1c541
... still awaiting proper resolution, of course. libgomp/ PR target/99555 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_nvptx): New. * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until resolved, make sure that we exit quickly, with error status, XFAILed. * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
22 lines
532 B
C
22 lines
532 B
C
// 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;
|
|
}
|