Open renatopancheri opened 1 year ago
Thanks for the bug report! We'll look into this. Just to be certain, you're using blis==0.7.9/0.7.10
, right?
it seams to me this problem exist with both 0.7.9/0.7.10
and 0.9.X
,
with 0.9.X
i also noticed there is also both '-O2' and '-O3' which does not seem totally intentional to me.
Personally i would integrate default configure script from blis
Our ability to support/debug this is going be pretty limited, but let's see...
What are the exact commands you used to build the blis
wheels?
From what I understand, the BLIS power9
target is not expected to support POWER8.
If you follow these directions:
https://github.com/explosion/cython-blis/#d-build-specific-support
you can build blis
for any supported target from upstream BLIS, which for blis
v0.7.x would be the ones listed here:
https://github.com/flame/blis/blob/0.7.0/config_registry
As a last resort, you can try using generic
. generic
will be very slow, but it's at least useful for initial testing.
Ah, I checked the setup again and I see how you ended up with power9
even though it's not the right choice, since we have an overly broad auto-detection step:
If you know the right way to detect power9+ with platform
, a PR would be welcome!
As far as I can tell, generic
may be your only choice, although again a note that this will be too slow for production use. This is how to build it for generic
:
https://github.com/explosion/cython-blis#c-install-with-generic-arch-support
It looks like a future version of BLIS should include a power
target: https://github.com/flame/blis/pull/718 . (But note that we've had multiple reports of segfaults with BLIS 0.9.0 that we haven't been able to track down, this PR has not been published in a BLIS release yet, and at this point we're not sure what the future of cython-blis
is going to look like.)
If the OpenBLAS support in numpy is better for power8 and your goal is to use thinc or spacy, you could also potentially go back to earlier versions that lets you switch entirely from blis to numpy gemm using a flag in thinc. I think you could use spacy v3.3 or earlier using thinc v8.0 and manually set the flag use_blis=False
for NumpyOps
using the thinc utils to set/configure ops: https://thinc.ai/docs/api-backends#util
Hi,
on my ppc64le Power8 machine (POWER8NVL) when python library thinc == 8.1.2 calls the
cpu_gather_add(saxpy(cblas), <float *>output.data, &table[0, 0], &indices[0, 0]
function python crashes right away, i've found the problem is actually in the compile flags on Blis library, running:
fixes the problem for me. For some reason
import blis
worked without any problems