@@ -187,26 +187,32 @@ class DescriptorWrapper
187187 // config_param::PLACEMENT
188188 bool get_in_place ()
189189 {
190- // TODO: replace when MKLD-10506 is implemented
191- // mkl_dft::config_value placement;
190+ #if defined(USE_ONEMKL_INTERFACES)
191+ mkl_dft::config_value placement;
192+ descr_.get_value (mkl_dft::config_param::PLACEMENT, &placement);
193+ return (placement == mkl_dft::config_value::INPLACE);
194+ #else
195+ // TODO: remove branch when MKLD-10506 is implemented
192196 DFTI_CONFIG_VALUE placement;
193-
194197 descr_.get_value (mkl_dft::config_param::PLACEMENT, &placement);
195- // TODO: replace when MKLD-10506 is implemented
196- // return (placement == mkl_dft::config_value::INPLACE);
197198 return (placement == DFTI_CONFIG_VALUE::DFTI_INPLACE);
199+ #endif // USE_ONEMKL_INTERFACES
198200 }
199201
200202 void set_in_place (const bool &in_place_request)
201203 {
202- // TODO: replace when MKLD-10506 is implemented
203- // descr_.set_value(mkl_dft::config_param::PLACEMENT, (in_place_request)
204- // ? mkl_dft::config_value::INPLACE :
205- // mkl_dft::config_value::NOT_INPLACE);
204+ #if defined(USE_ONEMKL_INTERFACES)
205+ descr_.set_value (mkl_dft::config_param::PLACEMENT,
206+ (in_place_request)
207+ ? mkl_dft::config_value::INPLACE
208+ : mkl_dft::config_value::NOT_INPLACE);
209+ #else
210+ // TODO: remove branch when MKLD-10506 is implemented
206211 descr_.set_value (mkl_dft::config_param::PLACEMENT,
207212 (in_place_request)
208213 ? DFTI_CONFIG_VALUE::DFTI_INPLACE
209214 : DFTI_CONFIG_VALUE::DFTI_NOT_INPLACE);
215+ #endif // USE_ONEMKL_INTERFACES
210216 }
211217
212218 // config_param::PRECISION
@@ -221,14 +227,16 @@ class DescriptorWrapper
221227 // config_param::COMMIT_STATUS
222228 bool is_committed ()
223229 {
224- // TODO: replace when MKLD-10506 is implemented
225- // mkl_dft::config_value committed;
230+ #if defined(USE_ONEMKL_INTERFACES)
231+ mkl_dft::config_value committed;
232+ descr_.get_value (mkl_dft::config_param::COMMIT_STATUS, &committed);
233+ return (committed == mkl_dft::config_value::COMMITTED);
234+ #else
235+ // TODO: remove branch when MKLD-10506 is implemented
226236 DFTI_CONFIG_VALUE committed;
227-
228237 descr_.get_value (mkl_dft::config_param::COMMIT_STATUS, &committed);
229- // TODO: replace when MKLD-10506 is implemented
230- // return (committed == mkl_dft::config_value::COMMITTED);
231238 return (committed == DFTI_CONFIG_VALUE::DFTI_COMMITTED);
239+ #endif // USE_ONEMKL_INTERFACES
232240 }
233241
234242private:
0 commit comments