1 /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
2
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15
16 #include "tensorflow/compiler/xla/service/cpu/runtime_single_threaded_fft.h"
17
18 #include "tensorflow/compiler/xla/service/cpu/runtime_fft_impl.h"
19 #include "tensorflow/core/platform/dynamic_annotations.h"
20 #include "tensorflow/core/platform/types.h"
21
22 using tensorflow::int32;
23 using tensorflow::int64;
24
__xla_cpu_runtime_EigenSingleThreadedFft(const void * run_options_ptr,void * out,void * operand,int32 fft_type,int32 double_precision,int32 fft_rank,int64 input_batch,int64 fft_length0,int64 fft_length1,int64 fft_length2)25 TF_ATTRIBUTE_NO_SANITIZE_MEMORY void __xla_cpu_runtime_EigenSingleThreadedFft(
26 const void* run_options_ptr, void* out, void* operand, int32 fft_type,
27 int32 double_precision, int32 fft_rank, int64 input_batch,
28 int64 fft_length0, int64 fft_length1, int64 fft_length2) {
29 tensorflow::xla::EigenFftImpl(Eigen::DefaultDevice(), out, operand,
30 static_cast<tensorflow::xla::FftType>(fft_type),
31 static_cast<bool>(double_precision), fft_rank,
32 input_batch, fft_length0, fft_length1,
33 fft_length2);
34 }
35