17 lines · c
1// REQUIRES: x86-registered-target2// REQUIRES: amdgpu-registered-target3// REQUIRES: clang-target-64-bits4 5// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -target-cpu gfx1030 \6// RUN: -fopenmp -nogpulib -fopenmp-is-target-device -verify %s7// expected-no-diagnostics8 9// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -target-cpu gfx1030 \10// RUN: -fopenmp -nogpulib -target-feature -image-insts \11// RUN: -fopenmp-is-target-device -S -o - %s 2>&1 | FileCheck %s12// CHECK: warning: feature flag '-image-insts' is ignored since the feature is read only13 14#pragma omp begin declare variant match(device = {arch(amdgcn)})15void foo();16#pragma omp end declare variant17