google / gemmlowp

Low-precision matrix multiplication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reconsider GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK

jart opened this issue · comments

Is there any chance the authors of gemmlowp would consider removing the #error directive that halts non-optimized builds? It's not a common practice. I'd like for it to be possible to build TensorFlow without passing any special configuration directives. Perhaps consider printing a big ASCII art skull and crossbones #warning instead? Sort of like Gosling Emacs?

cc: @gunan

Merged. Thanks for bringing this up and writing the patch.
This was done initially as we were concerned that many users would inadvertently miss out on the SIMD paths, and would rather know. However, this has since caused much trouble, and I was regretting it already.

It was definitely done with best intentions. Hopefully we'll be able to accomplish this on the TensorFlow end by creating additional pip packages for each CPU microarchitecture.