2023-07-31 15:40:53 -07:00
|
|
|
// 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
|
2024-05-23 13:21:40 +02:00
|
|
|
//
|
2024-06-29 00:56:18 -05:00
|
|
|
// REQUIRES: gpu
|
2020-01-09 14:54:44 -05:00
|
|
|
|
|
|
|
|
#ifdef SHARED
|
|
|
|
|
void foo() {}
|
|
|
|
|
#else
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
int main() {
|
|
|
|
|
#pragma omp target
|
|
|
|
|
;
|
|
|
|
|
// CHECK: DONE.
|
|
|
|
|
printf("%s\n", "DONE.");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
#endif
|