SYCLomatic icon indicating copy to clipboard operation
SYCLomatic copied to clipboard

output of __expf()

Open zjin-lcf opened this issue 3 years ago • 4 comments

The tool maps __expf() to sycl::exp(). Native math function may be desired.

zjin-lcf avatar Oct 04 '22 14:10 zjin-lcf

Hi @zjin-lcf we need to confirm whether there is a precision issue and we will consider to implement it if no precision issue. Thanks.

tomflinda avatar Oct 12 '22 09:10 tomflinda

Hi, @zjin-lcf @tomflinda. I found that the precision of sycl::exp() and sycl::native::exp() is tha same.

tangjj11 avatar Jun 09 '23 09:06 tangjj11

@tangjj11 Are sycl::native::exp() and sycl::exp() the same otherwise ? Thanks.

zjin-lcf avatar Jun 09 '23 23:06 zjin-lcf

@zjin-lcf I think it is the same, because sycl::exp() call sycl::native::exp(). Please refer to https://github.com/intel/llvm/blob/sycl/sycl/include/sycl/builtins.hpp#L2498.

tangjj11 avatar Jun 12 '23 01:06 tangjj11