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
203 lines
7.1 KiB
Common Lisp
203 lines
7.1 KiB
Common Lisp
// REQUIRES: !system-windows
|
|
|
|
// Test flush-denormals-to-zero enabled uses oclc_daz_opt_on
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx900 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx900 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm-no-math-opt-libs \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,GFX900,WAVE64 %s
|
|
|
|
|
|
// Make sure the different denormal default is respected for gfx8
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// Make sure the non-canonical name works
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=fiji \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx900 \
|
|
// RUN: -cl-denorms-are-zero \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,GFX900,WAVE64 %s
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: -cl-denorms-are-zero \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: -cl-finite-math-only \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-FINITE-ONLY,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: -cl-fp32-correctly-rounded-divide-sqrt \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-CORRECT-SQRT,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: -cl-fast-relaxed-math \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-FAST-RELAXED,GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 \
|
|
// RUN: -cl-unsafe-math-optimizations \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefixes=COMMON,GFX803,WAVE64 %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1010 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=WAVE32 %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1011 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=WAVE32 %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1012 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=WAVE32 %s
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1010 -mwavefrontsize64 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=WAVE64 %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1010 -mwavefrontsize64 -mno-wavefrontsize64 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefix=WAVE32 %s
|
|
|
|
// Ignore -mno-wavefrontsize64 without wave32 support
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx803 -mno-wavefrontsize64 \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s 2>&1 | \
|
|
// RUN: FileCheck --check-prefixes=GFX803,WAVE64 %s
|
|
|
|
|
|
|
|
// Test --hip-device-lib-path format
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx900 \
|
|
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
|
|
// RUN: %S/opencl.cl \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
|
|
|
|
// Test environment variable HIP_DEVICE_LIB_PATH
|
|
// RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx900 \
|
|
// RUN: %S/opencl.cl \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx908:xnack+ -fsanitize=address \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=ASAN,COMMON %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1250 -fsanitize=address \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=ASAN,COMMON %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx1251 -fsanitize=address \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=ASAN,COMMON %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
// RUN: -x cl -mcpu=gfx908:xnack+ \
|
|
// RUN: --rocm-path=%S/Inputs/rocm \
|
|
// RUN: %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefixes=NOASAN %s
|
|
|
|
// COMMON: "-triple" "amdgcn-amd-amdhsa"
|
|
// COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/opencl.bc"
|
|
// ASAN-SAME: "-mlink-bitcode-file" "{{.*}}/amdgcn/bitcode/asanrtl.bc"
|
|
// COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ocml.bc"
|
|
// COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ockl.bc"
|
|
|
|
|
|
// COMMON-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_off.bc"
|
|
// COMMON-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_off.bc"
|
|
|
|
|
|
// COMMON-FINITE-ONLY-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_off.bc"
|
|
// COMMON-FINITE-ONLY-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_on.bc"
|
|
|
|
|
|
// COMMON-CORRECT-SQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_off.bc"
|
|
// COMMON-CORRECT-SQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_off.bc"
|
|
|
|
|
|
// COMMON-FAST-RELAXED-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_on.bc"
|
|
// COMMON-FAST-RELAXED-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_on.bc"
|
|
|
|
|
|
// COMMON-UNSAFE-MATH-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_on.bc"
|
|
// COMMON-UNSAFE-MATH-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_off.bc"
|
|
|
|
// ASAN-SAME: "-fsanitize=address"
|
|
|
|
// NOASAN-NOT: "-fsanitize=address"
|
|
// NOASAN-NOT: amdgcn/bitcode/asanrtl.bc
|
|
|
|
// WAVE64: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_wavefrontsize64_on.bc"
|
|
// WAVE32: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_wavefrontsize64_off.bc"
|
|
|
|
// GFX900: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_isa_version_900.bc"
|
|
// GFX803: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_isa_version_803.bc"
|
|
|
|
kernel void func(void);
|