ROCm-Device-Libs icon indicating copy to clipboard operation
ROCm-Device-Libs copied to clipboard

y1(-0.0) returns +inf (instead of -inf or Nan)

Open VinInn opened this issue 3 years ago • 4 comments

I noticed that both y1f and y1 return +inf for -0.0 (and NaN for any other negative number) y0(-0.0) return -inf

linux libm return -inf for any negative number (NaN is most probably more correct) +inf is definitively wrong.

I am using rocm 4.2 out of the box

VinInn avatar Jul 31 '21 12:07 VinInn

Thanks, we'll take a look.

b-sumner avatar Jul 31 '21 21:07 b-sumner

This will be fixed in a future release. Thanks again for bringing it to our attention.

b-sumner avatar Jul 31 '21 21:07 b-sumner

Thanks for the fast action. I am checking OCML against MPFR and results are very encouraging. Sorry to highjack this thread: is OCML supported on platforms other than Radeon (say x86-64)?

VinInn avatar Aug 02 '21 06:08 VinInn

OCML is specifically for use by code running on AMD GPUs.

b-sumner avatar Aug 02 '21 14:08 b-sumner

This has been fixed.

b-sumner avatar Mar 28 '23 01:03 b-sumner