Skip to content

Commit c303e58

Browse files
authored
Disable O2 compile optimization for igamma ops
1 parent 8d53870 commit c303e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ATen/native/xpu/sycl/IGammaKernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ template <typename scalar_t>
1111
struct IgammaFunctor {
1212
IgammaFunctor(bool calc_igammac) : calc_igammac_(calc_igammac) {}
1313
bool calc_igammac_;
14-
scalar_t operator()(scalar_t a, scalar_t b) const {
14+
[[clang::optnone]] scalar_t operator()(scalar_t a, scalar_t b) const {
1515
if (calc_igammac_) {
1616
return calc_igammac<scalar_t>(a, b);
1717
} else {

0 commit comments

Comments
 (0)