1// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \
2// RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
3// RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \
4// RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
5//
6// REQUIRES: gpu
7
8#ifdef SHARED
9void foo() {}
10#else
11#include <stdio.h>
12int main() {
13#pragma omp target
14 ;
15 // CHECK: DONE.
16 printf(format: "%s\n", "DONE.");
17 return 0;
18}
19#endif
20

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of offload/test/offloading/dynamic_module.c