5 ms·
I disagree - I think you are well-served to compile on your own unless you know you don't need it, e.g. if you are just trying it out to learn how it works. Th
by peterbonney 10y ago
I disagree - I think you are well-served to compile on your own unless you know you don't need it, e.g. if you are just trying it out to learn how it works.
The standard build uses a "least common denominator" Intel instruction set (SSE4), but the odds are extremely high that the machine on which you're running tensorflow supports 4.2. Building from source allows you to use the most up-to-date instruction set (the default configuration script at https://www.tensorflow.org https://www.tensorflow.org will do it automatically).
I've seen dramatic (>50%) reductions in processing time on test scripts by building from source. Note that those tests were built primarily for my own education, not for benchmarking. But the speedup was so dramatic that I couldn't help but notice and probe a little deeper. YMMV depending on the particular application, whether you are using GPU computing (I am not), etc.
- matt4077 10y agoI don't quite understand how you performance-obsessed enough to care about the compiler options they use – but not run Tensorflow on a GPU. Even mobile GPUs offer a 5x speedup at least.
- peterbonney 10y agoAs I said above, if you are constrained to run on a machine without a supported GPU then every little bit helps.
- jorgemf 10y ago>The standard build uses a "least common denominator" Intel instruction set (SSE4) TensorFlow is not meant for the CPU. If you want to do something serious you have to move to the GPU, which it is at least 8 times faster than your optimized CPU with an average GPU.
- peterbonney 10y agoFor those of us waiting on OpenCL support because we don't have an Nvidia GPU, CPU will have to do for now.
- jorgemf 10y agoBuy an Nvidia GPU with 8Gb of ram and you are good to go by now. Or you can use amazon instances or google cloud. For toy things I wouldn't bother to suffer the hell that is to compile it (I do it for my job and it is a pain to suffer its unstability everytime I need to compile it)