CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
182 stars 29 forks source link

Build Error On Aurora - use of undeclared identifier 'sub_group_ballot' #754

Closed pvelesko closed 2 weeks ago

pvelesko commented 7 months ago
[ 63%] Building /home/pvelesko/chipStar/bitcode/ballot_native.cl
clang++: warning: argument unused during compilation: '-cl-ext=+cl_khr_subgroup' [-Wunused-command-line-argument]
/home/pvelesko/chipStar/bitcode/ballot_native.cl:33:10: error: use of undeclared identifier 'sub_group_ballot'
   33 |   return sub_group_ballot(predicate).x;
      |          ^
1 error generated.
make[2]: *** [bitcode/CMakeFiles/rtdevlib.dir/build.make:138: bitcode/ballot_native.bc] Error 1
make[1]: *** [CMakeFiles/Makefile2:3037: bitcode/CMakeFiles/rtdevlib.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Currently Loaded Modules:
  1) mpich/51.2/icc-all-pmix-gpu   2) intel_compute_runtime/release/agama-devel-551   3) oneapi/eng-compiler/2022.12.30.003   4) libfabric/1.15.2.0   5) cray-pals/1.3.2   6) cray-libpals/1.3.2   7) llvm/17.0/dynamic   8) cmake
pvelesko commented 7 months ago

Using a more recent runtime and compiler resolves the error - cmake should be performing version checks.

pvelesko commented 2 weeks ago

Closing since the "fix" is just using a reasonably new runtime.