You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Metal scatter does not support 64bit dtype #4300
Describe the bug mx.eye fails on the Metal GPU when an 8-byte dtype such as mx.int64 or mx.uint64 is requested. This happens because eye uses scatter internally, and Metal scatter does not support 8-byte output types.
Since eye only produces zeros and ones, it could safely construct the matrix using a scatter-supported dtype such as int32, then cast the result to the requested dtype without data loss.
Desktop (please complete the following information):
changed the title [-][BUG] `mlx.core.eye` fails on the Metal GPU when an 8-byte dtype such as `mlx.core.int64` or `mlx.core.uint64`[/-][+][BUG] Metal scatter does not support 64bit dtype[/+]on Aug 17, 2026
I'm closing this as won't fix since it is mostly a restriction of Metal not support 64bit atomics. And it does not make sense adding workarounds for very minor cases.
Activity
[-][BUG] `mlx.core.eye` fails on the Metal GPU when an 8-byte dtype such as `mlx.core.int64` or `mlx.core.uint64`[/-][+][BUG] Metal scatter does not support 64bit dtype[/+]zcbenz commentedon Aug 21, 2026
I'm closing this as won't fix since it is mostly a restriction of Metal not support 64bit atomics. And it does not make sense adding workarounds for very minor cases.