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

JIT alternative #540

Closed
na3na3na opened this issue Mar 8, 2024 · 3 comments
Closed

JIT alternative #540

na3na3na opened this issue Mar 8, 2024 · 3 comments
Assignees

Comments

@na3na3na
Copy link

na3na3na commented Mar 8, 2024

Hello,

Galois package has been very useful but I am having issues with the JIT compiled code using numba. Is there a way to turn the JIT compiling off using numba easily? Also, could you point me to where you are using numba for calculating rref and rank in _linalg?

Im aware i will be sacrificing speed but im mainly interested in the fields arithmetic only.

Thanks!

@mhostetter
Copy link
Owner

What issues are you having with the JIT code? Do you wish to remove the numba dependency completely? Or simply not use numba for the arithmetic?

See the Compilation Modes article. You can pass compile="python-calculate" to galois.GF() to only use Python ufuncs.

@na3na3na
Copy link
Author

na3na3na commented Mar 11, 2024

Yes, ideally i wish to remove numba dependency completely.

Im trying to use galois with nuika which does not play well with numba as the JIT compile requires bytecode which nuitka does not provide. I tried passing compile="python-calculate" but instead get an error of mode must be in jit-calculate for GF(2). Is there a way around this from galois end?

@mhostetter
Copy link
Owner

@na3na3na this feature was just released in v0.3.10. Let me know if it works for you.

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