ngraph icon indicating copy to clipboard operation
ngraph copied to clipboard

Eigen: Ensure vectorized paths and OpenMP are enabled

Open jmenon opened this issue 9 years ago • 2 comments

Eigen will serve as a fallback when we start building out the MKL-DNN based-transformer so we'll want to add the necessary CMake incantations to check for and enable OpenMP either globally, or for TUs #including Eigen headers. Also, we'll want to make sure Eigen is using vectorized code paths (if it isn't already enabled or needs additional flags)

jmenon avatar Sep 15 '17 19:09 jmenon

Should it be using BLAS as well?

diyessi avatar Sep 15 '17 19:09 diyessi

(Missed this comment) Yes, I think we should enable (say) OpenBLAS and run a few perf. tests and enable an external BLAS package based on the results. A quick search turns up some benchmarking results with Eigen against OpenBLAS, Atlas etc. but those seem stale, and with not a lot of benefit for small tensors. I'll plan on doing some comparisons when we decide to make that call.

jmenon avatar Oct 06 '17 17:10 jmenon