CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
49 lines
3.1 KiB
C
49 lines
3.1 KiB
C
// RUN: %clang_cc1 -verify -fopenmp -x c -std=c99 -ast-print %s -o - -Wno-openmp-clauses | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -verify -fopenmp-simd -x c -std=c99 -ast-print %s -o - -Wno-openmp-clauses | FileCheck %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
int foo(void);
|
|
|
|
#pragma omp declare variant(foo) match(construct={target})
|
|
#pragma omp declare variant(foo) match(construct={teams})
|
|
#pragma omp declare variant(foo) match(construct={parallel})
|
|
#pragma omp declare variant(foo) match(construct={for})
|
|
#pragma omp declare variant(foo) match(construct={simd})
|
|
#pragma omp declare variant(foo) match(construct={target,teams,parallel,for,simd})
|
|
#pragma omp declare variant(foo) match(xxx={}, yyy={ccc})
|
|
#pragma omp declare variant(foo) match(xxx={vvv})
|
|
#pragma omp declare variant(foo) match(implementation={vendor(score(0):amd)}, device={kind(fpga)})
|
|
#pragma omp declare variant(foo) match(implementation={vendor(amd), xxx})
|
|
#pragma omp declare variant(foo) match(implementation={vendor(unknown)}, device={kind(gpu)})
|
|
#pragma omp declare variant(foo) match(implementation={vendor(score(5): ibm, xxx, ibm)}, device={kind(cpu, nohost)})
|
|
#pragma omp declare variant(foo) match(device={kind(host)})
|
|
#pragma omp declare variant(foo) match(device={kind(nohost), xxx})
|
|
#pragma omp declare variant(foo) match(target_device={kind(host)})
|
|
#pragma omp declare variant(foo) match(target_device={kind(nohost), xxx})
|
|
#pragma omp declare variant(foo) match(implementation={extension(match_all)})
|
|
#pragma omp declare variant(foo) match(implementation={extension(match_any)})
|
|
#pragma omp declare variant(foo) match(implementation={extension(match_none)})
|
|
int bar(void);
|
|
|
|
// CHECK: int foo(void);
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={extension(match_none)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={extension(match_any)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={extension(match_all)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(target_device={kind(nohost)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(target_device={kind(host)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(device={kind(nohost)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(device={kind(host)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(score(5): ibm)}, device={kind(cpu, nohost)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(unknown)}, device={kind(gpu)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(amd)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(implementation={vendor(score(0): amd)}, device={kind(fpga)})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={target, teams, parallel, for, simd})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={simd})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={for})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={parallel})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={teams})
|
|
// CHECK-NEXT: #pragma omp declare variant(foo) match(construct={target})
|
|
// CHECK-NEXT: int bar(void);
|