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

Support for MacOS Metal Performance Shaders (MSP) based on py-metal-compute #835

Open
vitali-korezki opened this issue Jul 2, 2024 · 0 comments

Comments

@vitali-korezki
Copy link

Dear GPU Community,

recently I've started to play around with brain.js and processing calculations on GPU with the goal to squeeze some performance out of my home server with Blackmagic Pro eGPU. Generally speaking, I was able to run a few tests successfully, but surprisingly all calculations have been processed on my internal graphics card, not on eGPU.

Image 7-2-24 at 1 18 PM

However, if running tests with py-metal-compute (metalcompute pip package), calculation is being processed on all 3 GPUs.

Image 7-2-24 at 1 42 PM

With that, I would like to try to contribute looking for a way to migrate the logic from metalcompute to gpu.js. From my first observations I would need to develop a Kernel that can be injected similar to WebGLKernel or HeadlessGLKernel. As a first step I'm trying to get familiar with the code in src/backend/headless-gl/kernel.js, but if there is some information that would give me a head start, I would highly appreciate!

Any guidance that would speedup the development, I would highly appreciate it!

Best,
Vitali

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

1 participant