This avoids running the test for the host.
-// RUN: env LIBOMPTARGET_NEXTGEN_PLUGINS=1 \
-// RUN: %libomptarget-compileopt-run-and-check-generic
+// Run lines are in the target specific versions.
#include <omp.h>
#include <stdio.h>
if (!Failed)
printf("PASS\n");
- // CHECK: PASS
}
--- /dev/null
+// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -O1 -mllvm -openmp-opt-inline-device -I %S
+// RUN: env LIBOMPTARGET_NEXTGEN_PLUGINS=1 \
+// RUN: %libomptarget-run-amdgcn-amd-amdhsa | %fcheck-amdgcn-amd-amdhsa
+// REQUIRES: amdgcn-amd-amdhsa
+
+#include "omp_dynamic_shared_memory_mixed.inc"
+// CHECK: PASS
--- /dev/null
+// RUN: %libomptarget-compile-nvptx64-nvidia-cuda -I %S
+// RUN: env LIBOMPTARGET_NEXTGEN_PLUGINS=1 \
+// RUN: %libomptarget-run-nvptx64-nvidia-cuda | %fcheck-nvptx64-nvidia-cuda
+// REQUIRES: nvptx64-nvidia-cuda
+
+#include "omp_dynamic_shared_memory_mixed.inc"
+// CHECK: PASS