This change improves handling of errors during synchronization in Level Zero plugin by ensuring cleanup of queues and events in case of an synchronization error. As a result multiple tests stopped hanging. --------- Co-authored-by: Duran, Alex <alejandro.duran@intel.com>
23 lines
564 B
C
23 lines
564 B
C
// clang-format off
|
|
// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \
|
|
// RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
|
|
// RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \
|
|
// RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
|
|
//
|
|
// REQUIRES: gpu
|
|
|
|
// clang-format on
|
|
|
|
#ifdef SHARED
|
|
void foo() {}
|
|
#else
|
|
#include <stdio.h>
|
|
int main() {
|
|
#pragma omp target
|
|
;
|
|
// CHECK: DONE.
|
|
printf("%s\n", "DONE.");
|
|
return 0;
|
|
}
|
|
#endif
|