[clang] [clang][HIP] Make some math not not work with AMDGCN SPIR-V (PR #128360)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 28 09:04:19 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang` at step 6 "Add check check-clang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/17949
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Headers/__clang_hip_math.hip' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 5: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -o - -D__HIPCC_RTC__ | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,DEFAULT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -o - -D__HIPCC_RTC__
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,DEFAULT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
RUN: at line 13: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -menable-no-infs -menable-no-nans -o - -D__HIPCC_RTC__ | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,FINITEONLY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,FINITEONLY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -menable-no-infs -menable-no-nans -o - -D__HIPCC_RTC__
RUN: at line 22: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -fgpu-approx-transcendentals -o - -D__HIPCC_RTC__ | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,APPROX /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=CHECK,APPROX /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-unknown -target-cpu gfx906 -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -fgpu-approx-transcendentals -o - -D__HIPCC_RTC__
RUN: at line 30: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -o - -D__HIPCC_RTC__ | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=AMDGCNSPIRV /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/include -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/../../lib/Headers/cuda_wrappers -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/Inputs/include -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip -fcuda-is-device -O1 -o - -D__HIPCC_RTC__
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefixes=AMDGCNSPIRV /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip:76:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
// AMDGCNSPIRV-NEXT: br i1 [[CMP_NOT_I]], label [[_ZL21__MAKE_MANTISSA_BASE8PKC_EXIT:%.*]], label [[WHILE_BODY_I]]
^
<stdin>:35:31: note: scanning from here
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:35:31: note: with "CMP_NOT_I" equal to "%cmp\\.not\\.i"
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:35:31: note: with "WHILE_BODY_I" equal to "%cleanup\\.i"
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:41:17: note: possible intended match here
br i1 %or.cond.i, label %if.then.i, label %cleanup.i
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip:132:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
// AMDGCNSPIRV-NEXT: br i1 [[CMP_NOT_I]], label [[_ZL22__MAKE_MANTISSA_BASE10PKC_EXIT:%.*]], label [[WHILE_BODY_I]]
^
<stdin>:70:31: note: scanning from here
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:70:31: note: with "CMP_NOT_I" equal to "%cmp\\.not\\.i"
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:70:31: note: with "WHILE_BODY_I" equal to "%cleanup\\.i"
%cmp.not.i = icmp eq i8 %0, 0
^
<stdin>:76:17: note: possible intended match here
br i1 %or.cond.i, label %if.then.i, label %cleanup.i
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Headers/__clang_hip_math.hip:335:17: error: AMDGCNSPIRV: expected string not found in input
// AMDGCNSPIRV: while.cond.i28.i.preheader:
^
...
```
</details>
https://github.com/llvm/llvm-project/pull/128360
More information about the cfe-commits
mailing list