Tensor concatenate 50x slower than Matrix concat ?
Submitted by wil..@..il.com
Assigned to Nobody
Link to original bugzilla bug (#1753)
Version: 3.5 (future version)
Operating system: Linux
Description
Created attachment 954
bench_matrix_vs_tensor.cpp
Tensor concatenate 50x slower than Matrix horizontal concat ?
Building using /home/wtambellini/Downloads/eigen/eigen-eigen-3afb640b
g++ -std=c++14 -DEIGEN_NO_DEBUG -DNDEBUG -fopenmp -O3 -I../.. -I$EIGENDIR bench_matrix_vs_tensor.cpp -o bench_matrix_vs_tensor
Running...
Bench Eigen Matrix vs Tensor
Usage: program numberOfEigenThreads (default to 1) maxDeltaThreshold (default to 0.0001)
GCC: 6.1.0
Eigen version: 3.3.90
Simd: AVX SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2
TopLevel cache size: 4096 KB
L1 cache size: 32 KB
L2 cache size: 256 KB
L3 cache size: 4096 KB
Eigen::nbThreads: 1
EIGEN_NO_DEBUG
EIGEN_VECTORIZE
EIGEN_USE_THREADS
EIGEN_HAS_OPENMP: 201511
omp_get_num_threads: 1
Append 1 col: type=f repeat=100
L Matrix Tensor
1 29760 1793591
2 21202 2966067
4 33389 4606528
8 77923 8995368
16 156812 15950450
32 324265 31695752
64 783033 61748806
128 2057385 122513574
256 4061513 238534858
Could anyone just confirm ?
Kind regards
WT
Attachment 954, "bench_matrix_vs_tensor.cpp":
bench_matrix_vs_tensor.cpp