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
70 lines
4.6 KiB
Plaintext
70 lines
4.6 KiB
Plaintext
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mcumode \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mno-cumode \
|
|
// RUN: %s 2>&1 | FileCheck -DOFFLOAD_ARCH=gfx906 --check-prefixes=CUMODE-ON,WARN-CUMODE %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1030 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-OFF %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1030 --cuda-device-only -nogpuinc -nogpulib -mcumode \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1030 --cuda-device-only -nogpuinc -nogpulib -mno-cumode \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-OFF %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1250 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1250 --cuda-device-only -nogpuinc -nogpulib -mcumode \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=CUMODE-ON %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1250 --cuda-device-only -nogpuinc -nogpulib -mno-cumode \
|
|
// RUN: %s 2>&1 | FileCheck -DOFFLOAD_ARCH=gfx1250 --check-prefixes=CUMODE-ON,WARN-CUMODE %s
|
|
|
|
// Check no duplicate warnings.
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mcumode \
|
|
// RUN: -mno-cumode -mno-cumode \
|
|
// RUN: %s 2>&1 | FileCheck -DOFFLOAD_ARCH=gfx906 --check-prefixes=CUMODE-ON,WARN-CUMODE %s
|
|
|
|
// WARN-CUMODE-DAG: warning: ignoring '-mno-cumode' option as it is not currently supported for processor '[[OFFLOAD_ARCH]]' [-Woption-ignored]
|
|
// WARN-CUMODE-NOT: warning: ignoring '-mno-cumode' option as it is not currently supported for processor '[[OFFLOAD_ARCH]]' [-Woption-ignored]
|
|
// CUMODE-ON-DAG: #define __AMDGCN_CUMODE__ 1
|
|
// CUMODE-OFF-DAG: #define __AMDGCN_CUMODE__ 0
|
|
|
|
// RUN: %clang -E -dM --offload-arch=gfx90a --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=IMAGE,NOWARN %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1100 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=IMAGE,NOWARN %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx942 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=NOIMAGE,NOWARN %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx942 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=NOIMAGE,NOWARN %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx1100 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -Xclang -target-feature -Xclang "-image-insts" %s 2>&1 | FileCheck --check-prefixes=IMAGE,WARN %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx942 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -Xclang -target-feature -Xclang "+image-insts" %s 2>&1 | FileCheck --check-prefixes=NOIMAGE,WARN %s
|
|
// NOWARN-NOT: warning
|
|
// WARN: warning: feature flag '{{[+|-]}}image-insts' is ignored since the feature is read only [-Winvalid-command-line-argument]
|
|
// IMAGE-NOT: #define __HIP_NO_IMAGE_SUPPORT__
|
|
// IMAGE-NOT: #define __HIP_NO_IMAGE_SUPPORT
|
|
// NOIMAGE-DAG: #define __HIP_NO_IMAGE_SUPPORT__ 1
|
|
// NOIMAGE-DAG: #define __HIP_NO_IMAGE_SUPPORT 1
|
|
|
|
// RUN: %clang -E -dM --offload-arch=gfx1100 -nogpuinc -nogpulib \
|
|
// RUN: -fgpu-default-stream=per-thread %s 2>&1 | FileCheck --check-prefixes=PTS %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx942 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: -fgpu-default-stream=legacy %s 2>&1 | FileCheck --check-prefixes=NOPTS %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx942 --cuda-device-only -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefixes=NOPTS %s
|
|
// PTS-DAG: #define __HIP_API_PER_THREAD_DEFAULT_STREAM__ 1
|
|
// PTS-DAG: #define __HIP_API_PER_THREAD_DEFAULT_STREAM__ 1
|
|
// PTS-DAG: #define HIP_API_PER_THREAD_DEFAULT_STREAM 1
|
|
// PTS-DAG: #define HIP_API_PER_THREAD_DEFAULT_STREAM 1
|
|
// NOPTS-NOT: #define __HIP_API_PER_THREAD_DEFAULT_STREAM__
|
|
// NOPTS-NOT: #define HIP_API_PER_THREAD_DEFAULT_STREAM
|
|
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 -nogpuinc -nogpulib \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=NOAPPROX %s
|
|
// RUN: %clang -E -dM --offload-arch=gfx906 -nogpuinc -nogpulib -fgpu-approx-transcendentals \
|
|
// RUN: %s 2>&1 | FileCheck --check-prefix=APPROX %s
|
|
// NOAPPROX-NOT: #define __CLANG_GPU_APPROX_TRANSCENDENTALS__
|
|
// APPROX: #define __CLANG_GPU_APPROX_TRANSCENDENTALS__ 1
|
|
// APPROX: #define __CLANG_GPU_APPROX_TRANSCENDENTALS__ 1
|