How can I set cpu support when building tensorflow?
yuffon opened this issue · 3 comments
yuffon commented
My cpu support avx and avx2, but not avx512f. I build tensorflow myself. And tensorflow works well, but tensorboard still report the following error:
2019-02-04 07:39:40.286677: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX512F instructions, but these aren't available on your machine.
I have two questions.
- How can I set cpu feature support when building tensorflow? I think it is configured automatically when building on my platform.
- How can I control tensorboard version? tensorboard is collected when installing tensorflow whl file. Is it possible that tensorflow is suitable for my cpu(avx and avx2 but not avx512f) but tensorboard is not suitable for my cpu?
lakshayg commented
- TensorFlow is optimized for your CPU by default (
-march=native
) unless you specify different flags while compiling. If you want to enable only specific features, you can add flags like-mavx
,-msse4.1
and similar flags. - I'm not sure about this issue. You can try building tensorboard from source https://github.com/tensorflow/tensorboard
yuffon commented
Yes, I use -march=native
in configure. The compiled tensorflow is good, but tensorboard is not.
lakshayg commented
Are you saying that the compiled tensorboard does not work?