Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

How can I set cpu support when building tensorflow? #51

Open
yuffon opened this issue Feb 3, 2019 · 3 comments
Open

How can I set cpu support when building tensorflow? #51

yuffon opened this issue Feb 3, 2019 · 3 comments

Comments

@yuffon
Copy link

yuffon commented Feb 3, 2019

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.

  1. How can I set cpu feature support when building tensorflow? I think it is configured automatically when building on my platform.
  2. 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
Copy link
Owner

lakshayg commented Feb 4, 2019

  1. 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.
  2. I'm not sure about this issue. You can try building tensorboard from source https://github.com/tensorflow/tensorboard

@yuffon
Copy link
Author

yuffon commented Feb 4, 2019

Yes, I use -march=native in configure. The compiled tensorflow is good, but tensorboard is not.

@lakshayg
Copy link
Owner

lakshayg commented Feb 4, 2019

Are you saying that the compiled tensorboard does not work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants