[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:
Pushpinder Singh 2021-04-28 06:53:46 +00:00
parent 3504e50b6d
commit ae845d6426
11 changed files with 31 additions and 0 deletions

View File

@ -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")

View File

@ -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 {

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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 {

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>