diff options
author | 2017-12-22 19:28:38 -0800 | |
---|---|---|
committer | 2017-12-22 19:32:50 -0800 | |
commit | 7d1072dd3374a0aa22637a0fd4a17a4ddd064110 (patch) | |
tree | 610b7bc7d64a0e31481f7f080f1ce49168120f09 /tensorflow/compiler/xla/service/cpu/runtime_fft.h | |
parent | 12a4c9b8628b23cc2bf4c89c83c32760aded6124 (diff) |
Adds FFT for XLA: CPU via Eigen, GPU via cuFFT.
GPU support includes plan reuse with new scratch allocator per execution in fft_thunk.
PiperOrigin-RevId: 179983419
Diffstat (limited to 'tensorflow/compiler/xla/service/cpu/runtime_fft.h')
-rw-r--r-- | tensorflow/compiler/xla/service/cpu/runtime_fft.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/cpu/runtime_fft.h b/tensorflow/compiler/xla/service/cpu/runtime_fft.h new file mode 100644 index 0000000000..f20c5aa0aa --- /dev/null +++ b/tensorflow/compiler/xla/service/cpu/runtime_fft.h @@ -0,0 +1,31 @@ +/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +#ifndef TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_FFT_H_ +#define TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_FFT_H_ + +#include "tensorflow/core/platform/types.h" + +extern "C" { + +extern void __xla_cpu_runtime_EigenFft( + const void* /* xla::ExecutableRunOptions* */ run_options_ptr, void* out, + void* operand, tensorflow::int32 fft_type, tensorflow::int32 fft_rank, + tensorflow::int64 input_batch, tensorflow::int64 fft_length0, + tensorflow::int64 fft_length1, tensorflow::int64 fft_length2); + +} // extern "C" + +#endif // TENSORFLOW_COMPILER_XLA_SERVICE_CPU_RUNTIME_FFT_H_ |