diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2017-02-21 23:04:45 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-03-04 10:50:18 -0700 |
commit | c6a583e763bf0b613f7811046d92d6030c4b150c (patch) | |
tree | 4604a0b6a1b0473bc071044cc27a70dc1d7f9962 | |
parent | 235632b4d01163e1b6ff01ab65ba3488068fcd5f (diff) | |
download | numpy-c6a583e763bf0b613f7811046d92d6030c4b150c.tar.gz |
BUG: PPC64el machines are POWER for Fortran
Fix Fortran kind detection for PPC64el.
See: gh-3424.
-rwxr-xr-x | numpy/f2py/crackfortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index e38e8e3fe..f738a9f00 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2392,7 +2392,8 @@ def _selected_real_kind_func(p, r=0, radix=0): return 4 if p < 16: return 8 - if platform.machine().lower().startswith('power'): + machine = platform.machine().lower() + if machine.startswith('power') or machine.startswith('ppc64'): if p <= 20: return 16 else: |