FS#56258 - [tensorflow] tensorflow-cuda is built using -march=haswell but should be -x86_64
Attached to Project:
Community Packages
Opened by Andris Pavenis (andris) - Monday, 06 November 2017, 17:59 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 09 November 2017, 16:27 GMT
Opened by Andris Pavenis (andris) - Monday, 06 November 2017, 17:59 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 09 November 2017, 16:27 GMT
|
Details
Description:
Trying to use tensorflow-cuda on Sandybridge E CPU (i7 3930K) causes error message about AVX instructions not available. Perhaps only tensorflow-opt should should have 'export CC_OPT_FLAGS="-march=haswell"' in PKGBUILD Additional info: * package version(s) pkgver=1.4.0 (from PKGBUILD) Steps to reproduce: Install tensorflow-cuda on CPU older than Haswell (like Sandy Bridge or Ivy Bridge) and try to run it |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 09 November 2017, 16:27 GMT
Reason for closing: Fixed
Thursday, 09 November 2017, 16:27 GMT
Reason for closing: Fixed
From other point of view people having i9 79[02468]0X CPus may want to use AVX512. Ideally it could be auto-detection at runtime and use what is actually available (example from different software: configure option --enable-fat for gmp). Such auto-detection is however out of scope here.
F tensorflow/core/platform/cpu_feature_guard.cc:36] The TensorFlow library was compiled to use AVX2 instructions, but these aren't available on your machine.
on Intel(R) Xeon(R) CPU E5-2660 CPUs.
I think people doing ML with CUDA would prefer to upgrade their GPUs rather than CPUs. At least it is so in my university.