From 47fefa235f73315bc57d685a7bc9cd8d3577349f Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 3 Sep 2019 17:20:56 -0700 Subject: Allow move-only done callback in TensorAsyncDevice --- unsupported/test/cxx11_tensor_thread_pool.cpp | 47 +++++++++++++++------------ 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'unsupported/test/cxx11_tensor_thread_pool.cpp') diff --git a/unsupported/test/cxx11_tensor_thread_pool.cpp b/unsupported/test/cxx11_tensor_thread_pool.cpp index 62973cd08..dae7b0335 100644 --- a/unsupported/test/cxx11_tensor_thread_pool.cpp +++ b/unsupported/test/cxx11_tensor_thread_pool.cpp @@ -683,34 +683,39 @@ EIGEN_DECLARE_TEST(cxx11_tensor_thread_pool) CALL_SUBTEST_3(test_multithread_contraction_agrees_with_singlethread()); CALL_SUBTEST_3(test_multithread_contraction_with_output_kernel()); CALL_SUBTEST_3(test_multithread_contraction_with_output_kernel()); - CALL_SUBTEST_3(test_async_multithread_contraction_agrees_with_singlethread()); - CALL_SUBTEST_3(test_async_multithread_contraction_agrees_with_singlethread()); + + CALL_SUBTEST_4(test_async_multithread_contraction_agrees_with_singlethread()); + CALL_SUBTEST_4(test_async_multithread_contraction_agrees_with_singlethread()); // Test EvalShardedByInnerDimContext parallelization strategy. - CALL_SUBTEST_4(test_sharded_by_inner_dim_contraction()); - CALL_SUBTEST_4(test_sharded_by_inner_dim_contraction()); - CALL_SUBTEST_4(test_sharded_by_inner_dim_contraction_with_output_kernel()); - CALL_SUBTEST_4(test_sharded_by_inner_dim_contraction_with_output_kernel()); - CALL_SUBTEST_4(test_async_sharded_by_inner_dim_contraction()); - CALL_SUBTEST_4(test_async_sharded_by_inner_dim_contraction()); - CALL_SUBTEST_4(test_async_sharded_by_inner_dim_contraction_with_output_kernel()); - CALL_SUBTEST_4(test_async_sharded_by_inner_dim_contraction_with_output_kernel()); + CALL_SUBTEST_5(test_sharded_by_inner_dim_contraction()); + CALL_SUBTEST_5(test_sharded_by_inner_dim_contraction()); + CALL_SUBTEST_5(test_sharded_by_inner_dim_contraction_with_output_kernel()); + CALL_SUBTEST_5(test_sharded_by_inner_dim_contraction_with_output_kernel()); + + CALL_SUBTEST_6(test_async_sharded_by_inner_dim_contraction()); + CALL_SUBTEST_6(test_async_sharded_by_inner_dim_contraction()); + CALL_SUBTEST_6(test_async_sharded_by_inner_dim_contraction_with_output_kernel()); + CALL_SUBTEST_6(test_async_sharded_by_inner_dim_contraction_with_output_kernel()); // Exercise various cases that have been problematic in the past. - CALL_SUBTEST_5(test_contraction_corner_cases()); - CALL_SUBTEST_5(test_contraction_corner_cases()); + CALL_SUBTEST_7(test_contraction_corner_cases()); + CALL_SUBTEST_7(test_contraction_corner_cases()); - CALL_SUBTEST_6(test_full_contraction()); - CALL_SUBTEST_6(test_full_contraction()); + CALL_SUBTEST_8(test_full_contraction()); + CALL_SUBTEST_8(test_full_contraction()); - CALL_SUBTEST_7(test_multithreaded_reductions()); - CALL_SUBTEST_7(test_multithreaded_reductions()); + CALL_SUBTEST_9(test_multithreaded_reductions()); + CALL_SUBTEST_9(test_multithreaded_reductions()); - CALL_SUBTEST_7(test_memcpy()); - CALL_SUBTEST_7(test_multithread_random()); + CALL_SUBTEST_10(test_memcpy()); + CALL_SUBTEST_10(test_multithread_random()); TestAllocator test_allocator; - CALL_SUBTEST_7(test_multithread_shuffle(NULL)); - CALL_SUBTEST_7(test_multithread_shuffle(&test_allocator)); - CALL_SUBTEST_7(test_threadpool_allocate(&test_allocator)); + CALL_SUBTEST_11(test_multithread_shuffle(NULL)); + CALL_SUBTEST_11(test_multithread_shuffle(&test_allocator)); + CALL_SUBTEST_11(test_threadpool_allocate(&test_allocator)); + + // Force CMake to split this test. + // EIGEN_SUFFIXES;1;2;3;4;5;6;7;8;9;10;11 } -- cgit v1.2.3