ROCm / ROCm-Device-Libs

ROCm Device Libraries
97 stars 60 forks source link

are "pi" functions other than sinpi and cospi really available? #99

Closed VinInn closed 1 year ago

VinInn commented 1 year ago

I see code and doc for aXYZpi and for (a)tanpi(2) but in the version we installed only sinpi and cospi seem available grep pif /opt/rocm-5.7.0/llvm/lib/clang/17.0.0/include/clang_hip_math.h float cospif(float x) { return ocml_cospi_f32(x); } void sincospif(float x, float *sinptr, float *cosptr) { float sinpif(float x) { return ocml_sinpi_f32(x); }

b-sumner commented 1 year ago

@VinInn as you say, device libs have a full set of pi functions. This is a HIP problem. Would you please report this again in the HIP project?

VinInn commented 1 year ago

done: https://github.com/ROCm-Developer-Tools/HIP/issues/3335

b-sumner commented 1 year ago

Thank you!