From 6d5daf32f51c0903f89dfe8124d33b2152d9a625 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 25 Jul 2016 14:48:30 +0200 Subject: [PATCH] bug #1255: comment out broken and unsused line. --- unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index ad5c97b57..9075fb3fa 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -159,7 +159,9 @@ class TensorExecutor { #else size_t num_threads = device.numThreads(); if (num_threads > 1) { - cost = evaluator.costPerCoeff(Vectorizable) + // FIXME: the following line is broken (see bug 1255), + // but maybe the cost should be used somewhere to drive the execution. + //cost = evaluator.costPerCoeff(Vectorizable) num_threads = TensorCostModel::numThreads( size, evaluator.costPerCoeff(Vectorizable), num_threads); }