Skip to content

Commit e899139

Browse files
committed
update for mkl-2024.2
1 parent 9df8d24 commit e899139

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

dpnp/backend/extensions/fft/c2c.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ std::pair<sycl::event, sycl::event>
4747
const bool is_forward,
4848
const std::vector<sycl::event> &depends)
4949
{
50-
// TODO: activate in MKL=2024.2
51-
// bool committed = descr.is_committed();
52-
// if (!committed) {
53-
// throw py::value_error("Descriptor is not committed");
54-
//}
50+
bool committed = descr.is_committed();
51+
if (!committed) {
52+
throw py::value_error("Descriptor is not committed");
53+
}
5554

5655
const bool in_place = descr.get_in_place();
5756
if (in_place) {

dpnp/backend/extensions/fft/c2c.hpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class ComplexDescriptorWrapper
109109
const typename valT::value_type dim = get_dim();
110110

111111
valT fwd_strides(dim + 1);
112-
// TODO: Replace INPUT_STRIDES with FWD_STRIDES in MKL=2024.2
113-
descr_.get_value(mkl_dft::config_param::INPUT_STRIDES,
112+
descr_.get_value(mkl_dft::config_param::FWD_STRIDES,
114113
fwd_strides.data());
115114
return fwd_strides;
116115
}
@@ -124,8 +123,7 @@ class ComplexDescriptorWrapper
124123
throw py::value_error(
125124
"Strides length does not match descriptor's dimension");
126125
}
127-
// TODO: Replace INPUT_STRIDES with FWD_STRIDES in MKL=2024.2
128-
descr_.set_value(mkl_dft::config_param::INPUT_STRIDES, strides.data());
126+
descr_.set_value(mkl_dft::config_param::FWD_STRIDES, strides.data());
129127
}
130128

131129
// config_param::BWD_STRIDES
@@ -135,8 +133,7 @@ class ComplexDescriptorWrapper
135133
const typename valT::value_type dim = get_dim();
136134

137135
valT bwd_strides(dim + 1);
138-
// TODO: Replace OUTPUT_STRIDES with BWD_STRIDES in MKL=2024.2
139-
descr_.get_value(mkl_dft::config_param::OUTPUT_STRIDES,
136+
descr_.get_value(mkl_dft::config_param::BWD_STRIDES,
140137
bwd_strides.data());
141138
return bwd_strides;
142139
}
@@ -150,8 +147,7 @@ class ComplexDescriptorWrapper
150147
throw py::value_error(
151148
"Strides length does not match descriptor's dimension");
152149
}
153-
// TODO: Replace OUTPUT_STRIDES with BWD_STRIDES in MKL=2024.2
154-
descr_.set_value(mkl_dft::config_param::OUTPUT_STRIDES, strides.data());
150+
descr_.set_value(mkl_dft::config_param::BWD_STRIDES, strides.data());
155151
}
156152

157153
// config_param::FWD_DISTANCE

0 commit comments

Comments
 (0)