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

Can this library be used on mobile ? #130

Open
493226363 opened this issue Dec 3, 2024 · 2 comments
Open

Can this library be used on mobile ? #130

493226363 opened this issue Dec 3, 2024 · 2 comments

Comments

@493226363
Copy link

When I used it on mobile, it caused the process to stall. Here's the part of the code that got stuck:
np.arange(1);
var PyThread = PythonEngine.BeginAllowThreads();
This leaves me unsure of the cause.
I noticed that Numpy.dll was shipped for the netstandard2.0 platform. Should this be a cross-platform library, or am I using it incorrectly?

@henon
Copy link
Contributor

henon commented Dec 3, 2024

Numpy.NET is shipped for windows by default. https://github.com/SciSharp/Numpy.NET?tab=readme-ov-file#versions-and-compatibility

You could in theory create a linux version by compiling Numpy.Bare from source and using a numpy wheel that was compiled specifically for the mobile platform you are targeting.

@493226363
Copy link
Author

Numpy.NET is shipped for windows by default. https://github.com/SciSharp/Numpy.NET?tab=readme-ov-file#versions-and-compatibility

You could in theory create a linux version by compiling Numpy.Bare from source and using a numpy wheel that was compiled specifically for the mobile platform you are targeting.

Thank you for your reply. I will try to compile the source code to see if it can be used on the mobile terminal.

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