Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why avx2 causes this issue during dynamic linking? #21

Open
capricornsky0119 opened this issue Mar 26, 2024 · 1 comment
Open

why avx2 causes this issue during dynamic linking? #21

capricornsky0119 opened this issue Mar 26, 2024 · 1 comment

Comments

@capricornsky0119
Copy link

We find the same problem on a special cpu (i.e., Intel Xenon E5-2620 v4), while it works fine on other CPUs (e.g., Intel 8336).

Can you provide more details for this issue (i.e., illegal instruction), for example, the explaination from Intel or gcc or Cmake ...

Thanks!

https://github.com/LGro/PyAPSI/blob/main/docker/base.Dockerfile#L13-L17

@LGro
Copy link
Owner

LGro commented Apr 12, 2024

Hi, from what I've seen this issue arises when APSI is built on a system with certain platform extensions supported by the present CPU and the resulting binary then being used on less capable systems that do not support the same extensions like AVX2, see also #11 and #13. In a way the APSI build is "too smart" with its context awareness of detecting available ways to e.g. accelerate computation; the flipside of this is that my approach of trying to build APSI once and ship it to all kinds of systems is flawed. Instead of distributing a wheel we should probably distribute PyAPSI as source and build it on each target system on installation including the compilation of APSI. But I don't know how to do that yet and my focus has unfortunately shifted away from APSI. But if you have ideas or would like to figure out source distribution and automated, self contained building on the target system, it would do the community a great service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants