We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sycl::log1p
std::log1p
math_utils.hpp
1 parent 163bd3c commit 0650dc8Copy full SHA for 0650dc8
dpctl/tensor/libtensor/include/utils/math_utils.hpp
@@ -122,12 +122,14 @@ template <typename T> T logaddexp(T x, T y)
122
return x + log2;
123
}
124
else {
125
+ // FIXME: switch to `sycl::log1p` when
126
+ // compiler segfault in CUDA build is fixed
127
const T tmp = x - y;
128
if (tmp > 0) {
- return x + sycl::log1p(sycl::exp(-tmp));
129
+ return x + std::log1p(sycl::exp(-tmp));
130
131
else if (tmp <= 0) {
- return y + sycl::log1p(sycl::exp(tmp));
132
+ return y + std::log1p(sycl::exp(tmp));
133
134
135
return std::numeric_limits<T>::quiet_NaN();
0 commit comments