[libclc] libclc: increase fp16 support (PR #98149)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 05:08:36 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `libclc` at step 6 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/3385

Here is the relevant piece of the build log for the reference:
```
Step 6 (build-unified-tree) failure: build (failure)
...
17.724 [2782/58/268] Generating obj.libclc.dir/tahiti-amdgcn-mesa-mesa3d/generic/lib/relational/signbit.cl.bc
17.726 [2781/58/269] Generating obj.libclc.dir/nvptx--/generic/lib/math/asinpi.cl.bc
17.727 [2780/58/270] Generating obj.libclc.dir/nvptx--/generic/lib/math/acospi.cl.bc
17.728 [2779/58/271] Linking CXX shared module tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/_mlirDialectsSparseTensor.cpython-310-x86_64-linux-gnu.so
17.728 [2778/58/272] Linking CXX shared module tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/_mlirExecutionEngine.cpython-310-x86_64-linux-gnu.so
17.731 [2777/58/273] Generating obj.libclc.dir/amdgcn--amdhsa/generic/lib/cl_khr_int64_base_atomics/atom_sub.cl.bc
17.744 [2776/58/274] Generating obj.libclc.dir/clspv--/generic/lib/math/clc_remainder.cl.bc
17.753 [2775/58/275] Generating obj.libclc.dir/clspv--/generic/lib/math/ldexp.cl.bc
17.754 [2774/58/276] Generating obj.libclc.dir/tahiti-amdgcn-mesa-mesa3d/generic/lib/shared/max.cl.bc
17.856 [2773/58/277] Generating obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc
FAILED: tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc 
cd /build/buildbot/premerge-monolithic-linux/build/tools/libclc && /build/buildbot/premerge-monolithic-linux/build/bin/clang-19 -target r600-- -c -mcpu=barts -fno-builtin -nostdlib -D__CLC_INTERNAL -DCLC_R600 -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include -Wno-bitwise-conditional-parentheses -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_base_atomics -MD -MF /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc.d -MT /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc -cl-no-stdinc -emit-llvm -o /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc -x cl /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl && /etc/cmake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /build/buildbot/premerge-monolithic-linux/llvm-project/llvm /build/buildbot/premerge-monolithic-linux/llvm-project/libclc /build/buildbot/premerge-monolithic-linux/build /build/buildbot/premerge-monolithic-linux/build/tools/libclc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl.bc.d /build/buildbot/premerge-monolithic-linux/build/CMakeFiles/d/54ef415d6b9c7c45422c2441355b19af2ed1958f751add27287a5a7a084406ed.d
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl:1:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/clc.h:22:
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:73:1: error: expected function body after function declarator
   73 | _CLC_VECTOR_CONVERT_TO_SUFFIX(_rtn)
      | ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:71:3: note: expanded from macro '_CLC_VECTOR_CONVERT_TO_SUFFIX'
   71 |   _CLC_VECTOR_CONVERT_TO(ROUND)
      |   ^
1 error generated.
17.856 [2773/57/278] Generating obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc
FAILED: tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc 
cd /build/buildbot/premerge-monolithic-linux/build/tools/libclc && /build/buildbot/premerge-monolithic-linux/build/bin/clang-19 -target r600-- -c -mcpu=barts -fno-builtin -nostdlib -D__CLC_INTERNAL -DCLC_R600 -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include -Wno-bitwise-conditional-parentheses -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics -MD -MF /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc.d -MT /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc -cl-no-stdinc -emit-llvm -o /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc -x cl /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl && /etc/cmake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /build/buildbot/premerge-monolithic-linux/llvm-project/llvm /build/buildbot/premerge-monolithic-linux/llvm-project/libclc /build/buildbot/premerge-monolithic-linux/build /build/buildbot/premerge-monolithic-linux/build/tools/libclc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl.bc.d /build/buildbot/premerge-monolithic-linux/build/CMakeFiles/d/4916e754d4323cb996fa367f8ae31fa5d58f414c0e6e482bbe15a131d1cb4920.d
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl:3:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics/../atom_int32_binary.inc:1:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/clc.h:22:
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:73:1: error: expected function body after function declarator
   73 | _CLC_VECTOR_CONVERT_TO_SUFFIX(_rtn)
      | ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:71:3: note: expanded from macro '_CLC_VECTOR_CONVERT_TO_SUFFIX'
   71 |   _CLC_VECTOR_CONVERT_TO(ROUND)
      |   ^
1 error generated.
17.874 [2773/56/279] Generating obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc
FAILED: tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc 
cd /build/buildbot/premerge-monolithic-linux/build/tools/libclc && /build/buildbot/premerge-monolithic-linux/build/bin/clang-19 -target r600-- -c -mcpu=barts -fno-builtin -nostdlib -D__CLC_INTERNAL -DCLC_R600 -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include -Wno-bitwise-conditional-parentheses -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_int64_base_atomics -MD -MF /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc.d -MT /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc -cl-no-stdinc -emit-llvm -o /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc -x cl /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_int64_base_atomics/atom_add.cl && /etc/cmake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /build/buildbot/premerge-monolithic-linux/llvm-project/llvm /build/buildbot/premerge-monolithic-linux/llvm-project/libclc /build/buildbot/premerge-monolithic-linux/build /build/buildbot/premerge-monolithic-linux/build/tools/libclc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_int64_base_atomics/atom_add.cl.bc.d /build/buildbot/premerge-monolithic-linux/build/CMakeFiles/d/a38604cc3e9218cb5ee9648f70d45dfc701f9c9ca53b6a98f44565b6f90607d0.d
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_int64_base_atomics/atom_add.cl:1:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/clc.h:22:
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:73:1: error: expected function body after function declarator
   73 | _CLC_VECTOR_CONVERT_TO_SUFFIX(_rtn)
      | ^
/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include/clc/convert.h:71:3: note: expanded from macro '_CLC_VECTOR_CONVERT_TO_SUFFIX'
   71 |   _CLC_VECTOR_CONVERT_TO(ROUND)
      |   ^
1 error generated.
17.875 [2773/55/280] Generating obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc
FAILED: tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc 
cd /build/buildbot/premerge-monolithic-linux/build/tools/libclc && /build/buildbot/premerge-monolithic-linux/build/bin/clang-19 -target r600-- -c -mcpu=barts -fno-builtin -nostdlib -D__CLC_INTERNAL -DCLC_R600 -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/include -Wno-bitwise-conditional-parentheses -I/build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics -MD -MF /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc.d -MT /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc -cl-no-stdinc -emit-llvm -o /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc -x cl /build/buildbot/premerge-monolithic-linux/llvm-project/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl && /etc/cmake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /build/buildbot/premerge-monolithic-linux/llvm-project/llvm /build/buildbot/premerge-monolithic-linux/llvm-project/libclc /build/buildbot/premerge-monolithic-linux/build /build/buildbot/premerge-monolithic-linux/build/tools/libclc /build/buildbot/premerge-monolithic-linux/build/tools/libclc/obj.libclc.dir/barts-r600--/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl.bc.d /build/buildbot/premerge-monolithic-linux/build/CMakeFiles/d/6b47d740c1c252336bdd546b73b979676993080ac978783cb9fd776930286d5e.d

```

https://github.com/llvm/llvm-project/pull/98149


More information about the cfe-commits mailing list