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

Metal backend doesn't support iOS #1926

Open
nguyenpham opened this issue Oct 11, 2023 · 3 comments
Open

Metal backend doesn't support iOS #1926

nguyenpham opened this issue Oct 11, 2023 · 3 comments

Comments

@nguyenpham
Copy link
Contributor

I can't compile the Metal backend for iOS since some functions are for macOS but not iOS. For example:

'MTLCopyAllDevices' is unavailable: not available on iOS

Please use functions that are also available for iOS.

@borg323
Copy link
Member

borg323 commented Oct 12, 2023

Is this just an issue of adding an alternative code path that calls MTLCreateSystemDefaultDevice() instead of MTLCopyAllDevices()?

@nguyenpham
Copy link
Contributor Author

I don't know, just saw the issue when trying to compile and I haven't looked at the code for Metal yet (so hard for me to understand). Just read from the Apple document, MTLCopyAllDevices is for macOS only.

@ChinChangYang
Copy link
Contributor

Your app can use multiple GPUs on an Intel-based Mac, including any built-in and external GPUs.

Mac computers (and iPhone) with Apple silicon have a single, high-performance, and energy-efficient GPU.

Reference

https://developer.apple.com/documentation/metal/gpu_devices_and_work_submission/multi-gpu_systems/finding_multiple_gpus_on_an_intel-based_mac

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

3 participants