aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_executor.cpp
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-25 11:25:22 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-25 11:25:22 -0700
commit71d5bedf7224c4c2a2abb783a7cb5a60121b1ccb (patch)
treee868f6e11918c98dc8e2c8867b96fe04696f7217 /unsupported/test/cxx11_tensor_executor.cpp
parent5e186b1987b8b17075b4e36a290b7e9f69cc81cb (diff)
Fix compilation warnings and errors with clang in TensorBlockV2
Diffstat (limited to 'unsupported/test/cxx11_tensor_executor.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_executor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_executor.cpp b/unsupported/test/cxx11_tensor_executor.cpp
index c1ca27734..c233fe30f 100644
--- a/unsupported/test/cxx11_tensor_executor.cpp
+++ b/unsupported/test/cxx11_tensor_executor.cpp
@@ -582,10 +582,11 @@ static void test_async_execute_unary_expr(Device d)
Eigen::Barrier done(1);
auto on_done = [&done]() { done.Notify(); };
+ static const bool TilingOn = Tiling == TiledEvaluation::Off ? false : true;
using Assign = TensorAssignOp<decltype(dst), const decltype(expr)>;
using DoneCallback = decltype(on_done);
using Executor = internal::TensorAsyncExecutor<const Assign, Device, DoneCallback,
- Vectorizable, Tiling>;
+ Vectorizable, TilingOn>;
Executor::runAsync(Assign(dst, expr), d, on_done);
done.Wait();
@@ -618,10 +619,11 @@ static void test_async_execute_binary_expr(Device d)
Eigen::Barrier done(1);
auto on_done = [&done]() { done.Notify(); };
+ static const bool TilingOn = Tiling == TiledEvaluation::Off ? false : true;
using Assign = TensorAssignOp<decltype(dst), const decltype(expr)>;
using DoneCallback = decltype(on_done);
using Executor = internal::TensorAsyncExecutor<const Assign, Device, DoneCallback,
- Vectorizable, Tiling>;
+ Vectorizable, TilingOn>;
Executor::runAsync(Assign(dst, expr), d, on_done);
done.Wait();