-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Hardware acceleration for matrix operations #1788
Comments
Thanks for your suggestion @jarble . Hardware acceleration would be cool, but I expect that this is too specific to easily integrate with mathjs. I have the feeling that to make that work, you have to start from the GPU and build an API from there (lie GPU.js), instead of the other way around. I may be mistaken though. So a challenge here: if someone has a concrete idea of how this would/could work out, let's keep this issue open. |
I suggested to run arithmetic code into a Web Worker ? https://developer.mozilla.org/fr/docs/Web/API/Web_Workers_API/Utilisation_des_web_workers. |
Yes, that's always a possibility :) |
Webworkers are a good start, they let you run multiple threads of logic at the same time. The main issue I see is that if math.js doesn't GPU accel, than another project will, and it will probably get most of the potential user base of math.js. Probably most of the people needing to do serious math will need/want accel.
|
Duplicate of #2702. Closing this -- please hold further discussion there. |
To improve the efficiency of matrix operations, MathJS could run some of these operations on the GPU instead of the CPU. This could be useful when adding, subtracting, or multiplying very large matrices.
Would it be possible to do this using a hardware acceleration library like GPU.js?
The text was updated successfully, but these errors were encountered: