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

MTL.append_copy! silently ignores Metal documentation restriction #349

Open
christiangnrd opened this issue May 24, 2024 · 3 comments
Open
Labels
libraries Things about libraries and how we use them.

Comments

@christiangnrd
Copy link
Contributor

It is stated here that the buffer offsets and buffer size need to be multiples of 4 in MacOS.

MTL.append_copy! which calls copyFromBuffer does not impose such a limitation, but it also seems to work for offsets and sizes that are not multiples of 4. I suspect this limitation onlyexists for non-apple-silicon GPUs, which we don't support, but I don't know how to verify that.

How should we handle this?

@christiangnrd christiangnrd added the libraries Things about libraries and how we use them. label May 24, 2024
@maleadt
Copy link
Member

maleadt commented May 24, 2024

Maybe ask the question on https://developer.apple.com/forums/? There's some devs and employees active there.

@christiangnrd
Copy link
Contributor Author

I get redirected to a "Page not found" whenever I try to sign in or post. I'll try again in a few days.

@christiangnrd
Copy link
Contributor Author

Ended up posting but never got a reply. I suggest we leave things as-is unless we find a reason not to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Things about libraries and how we use them.
Projects
None yet
Development

No branches or pull requests

2 participants