[MacPorts] #48381: Difficulty installing OpenBlas

MacPorts noreply at macports.org
Fri Aug 7 04:31:22 PDT 2015


#48381: Difficulty installing OpenBlas
--------------------------+---------------------
  Reporter:  aaron.koe@…  |      Owner:  nicos@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.3
Resolution:               |   Keywords:
      Port:  openblas     |
--------------------------+---------------------

Comment (by andy.nowacki@…):

 (I filed a duplicate bug at ticket #48507 before spotting this issue.)

 Nicos, I think your assessment is correct.  I have the same behaviour when
 building on a MacBookPro12,1 (early 2015 MacBook Pro 13") which has an
 Intel Core i5-5287U processor, 'Broadwell-U'.  I note that param.h has
 default values defined for codes up to Haswell (param.h:1193), but nothing
 newer.  For some reason, getarch.c does not define a name for the
 processor in this machine other than 'INTEL_UNKNOWN', which means param.h
 defines no values, as is evident.  (I don't think the 'CORE=UNKOWN'
 spelling mistake has a detrimental effect here.)

 On a MacPro6,1 (late 2013 Mac Pro), with an Intel Xeon E5-1650v2, 'Ivy
 Bridge EP', getarch_2nd.c in OpenBLAS (as part of the julia port) compiled
 with no problem.

 Running getarch in the build directory on the two machines, the output is:
 {{{
 $ ### MacBook Pro output: ###
 $ for i in {0..2}; do ./getarch $i; done
 CORE=UNKOWN
 LIBCORE=unknown
 -- snip --
 #define INTEL_UNKNOWN
 -- snip --
 #define NUM_CORES 1
 #define CHAR_CORENAME "UNKOWN"
 SMP=1
 }}}

 {{{
 ### Mac Pro output ###
 CORE=SANDYBRIDGE
 LIBCORE=sandybridge
 -- snip --
 #define SANDYBRIDGE
 -- snip --
 #define NUM_CORES 1
 #define CORE_SANDYBRIDGE
 #define CHAR_CORENAME "SANDYBRIDGE"
 SMP=1
 }}}

 I checked upstream (https://github.com/xianyi/OpenBLAS) and they seem to
 have fixed this on April 2 with the following commit:

 {{{
 commit 8977b3f2357c6dcc1e93812a0bf902d0aa37da65
 Author: Zhang Xianyi <traits.zhang at gmail.com>
 Date:   Thu Apr 2 11:08:03 2015 -0500

     Refs #529. Support Intel Broadwell by Haswell kernels.

  cpuid_x86.c             | 70
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  driver/others/dynamic.c | 29 +++++++++++++++++++++++++
  2 files changed, 99 insertions(+)
 }}}

 However, this has not yet been merged into a tagged release or master.

-- 
Ticket URL: <https://trac.macports.org/ticket/48381#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list