CHIP-SPV / chipStar

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

fails to build with OCML_BASIC_ROUNDED_OPERATIONS=ON #699

Closed franz closed 9 months ago

franz commented 10 months ago
/home/michal/0/source/chipStar_1_1/include/hip/devicelib/double_precision/dp_intrinsics.hh:45:10: error: use of undeclared identifier '__ocml_add_rtn_f64'
  return __ocml_add_rtn_f64(x, y);
         ^
/home/michal/0/source/chipStar_1_1/include/hip/devicelib/double_precision/dp_intrinsics.hh:50:10: error: use of undeclared identifier '__ocml_add_rte_f64'
  return __ocml_add_rte_f64(x, y);

I can't find the referenced ocml functions anywhere in the ROCm bitcode libraries.

linehill commented 10 months ago

You can find them with grep -E '_RT(E|N|P|Z)[)]' -r bitcode/ROCm-Device-Libs/. All of them are commented out right now because they seem to rely on LLVM intrinsics (bitcode/ROCm-Device-Libs/ocml/src/builtins.h).