aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
diff options
context:
space:
mode:
authorGravatar Akshay Modi <nareshmodi@google.com>2018-06-18 09:57:19 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-18 09:59:59 -0700
commite80732c9895d1283af9b98d6277ad1a1015e2e9a (patch)
tree14895657394f9cdfed8435460e37fe89a45ba599 /tensorflow/compiler/xla/service/cpu/ir_emitter.cc
parent8ecf506fb8464dd273ce59f512f5e20d37dd5cfd (diff)
Merge changes from github.
PiperOrigin-RevId: 201011811
Diffstat (limited to 'tensorflow/compiler/xla/service/cpu/ir_emitter.cc')
-rw-r--r--tensorflow/compiler/xla/service/cpu/ir_emitter.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/cpu/ir_emitter.cc b/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
index 2c20be155f..758b8c62b4 100644
--- a/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
+++ b/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
@@ -1172,7 +1172,13 @@ Status IrEmitter::HandleFft(HloInstruction* fft) {
{int8_ptr_type, int8_ptr_type, int8_ptr_type, int32_type, int32_type,
int64_type, int64_type, int64_type, int64_type},
/*isVarArg=*/false);
- const char* fn_name = runtime::kEigenFftSymbolName;
+
+ bool multi_threaded_eigen =
+ hlo_module_config_.debug_options().xla_cpu_multi_thread_eigen();
+ const char* fn_name = multi_threaded_eigen
+ ? runtime::kEigenFftSymbolName
+ : runtime::kEigenSingleThreadedFftSymbolName;
+
llvm::Function* fft_func = llvm::cast<llvm::Function>(
module_->getOrInsertFunction(fn_name, fft_type));
fft_func->setCallingConv(llvm::CallingConv::C);