[AMDGPU][OpenMP] Enable Libomptarget runtime tests
This enables the runtime tests on amdgpu targets. 10 tests have been marked as XFAIL on amdgcn currently mostly due to missing printf. Reviewed By: protze.joachim Differential Revision: https://reviews.llvm.org/D99656
This commit is contained in:
parent
3504e50b6d
commit
ae845d6426
|
@ -37,6 +37,7 @@ endif()
|
|||
|
||||
# This is a list of all the targets that are supported/tested right now.
|
||||
set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} aarch64-unknown-linux-gnu")
|
||||
set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} amdgcn-amd-amdhsa")
|
||||
set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64le-ibm-linux-gnu")
|
||||
set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64-ibm-linux-gnu")
|
||||
set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} x86_64-pc-linux-gnu")
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// RUN: %libomptarget-compilexx-run-and-check-generic
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
struct View {
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// RUN: %libomptarget-compilexx-run-and-check-generic
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// RUN: %libomptarget-compilexx-run-and-check-generic
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// RUN: %libomptarget-compile-run-and-check-generic
|
||||
|
||||
// fails with error message 'Unable to generate target entries' on amdgcn
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
#include <omp.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// RUN: %libomptarget-compile-run-and-check-generic
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
// RUN: %libomptarget-compile-run-and-check-generic
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
#include <omp.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// RUN: %libomptarget-compile-run-and-check-generic
|
||||
// XFAIL: nvptx64-nvidia-cuda
|
||||
|
||||
// Fails on amdgcn with error: GPU Memory Error
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
#include <omp.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// UNSUPPORTED: clang-6, clang-7, clang-8, clang-9
|
||||
// XFAIL: nvptx64-nvidia-cuda
|
||||
|
||||
// Fails on amdgcn with error: GPU Memory Error
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <omp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
// UNSUPPORTED: clang-6, clang-7, clang-8, clang-9
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <omp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// RUN: %libomptarget-compile-run-and-check-generic
|
||||
// XFAIL: nvptx64-nvidia-cuda
|
||||
|
||||
// amdgcn does not have printf definition
|
||||
// XFAIL: amdgcn-amd-amdhsa
|
||||
|
||||
#include <stdio.h>
|
||||
#include <omp.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue