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 : fp64 operations with jax.numpy base functions not supported #20938

Closed
aboucaud opened this issue Apr 25, 2024 · 4 comments
Closed

Metal : fp64 operations with jax.numpy base functions not supported #20938

aboucaud opened this issue Apr 25, 2024 · 4 comments
Assignees
Labels
Apple GPU (Metal) plugin bug Something isn't working duplicate This issue or pull request already exists

Comments

@aboucaud
Copy link

Description

Running the following

import jax
jax.config.update("jax_enable_x64", True)
jax.numpy.linspace(0, 1, 10)

produces

XlaRuntimeError: UNKNOWN: <unknown>:0: error: 'func.func' op One or more function input/output data types are not supported.
...
<unknown>:0: error: failed to legalize operation 'func.func'

Also tested with logspace, arange, etc.

System info (python version, jaxlib version, accelerator, etc.)

jax:    0.4.26
jaxlib: 0.4.23
numpy:  1.26.4
python: 3.11.4 (main, Jun 19 2023, 22:36:35) [Clang 14.0.3 (clang-1403.0.22.14.1)]
jax.devices (1 total, 1 local): [METAL(id=0)]
process_count: 1
platform: uname_result(system='Darwin', node='altair', release='23.4.0', version='Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020', machine='arm64')
@aboucaud aboucaud added the bug Something isn't working label Apr 25, 2024
@shuhand0
Copy link
Collaborator

Fp64 is not supported in jax-metal backend and is unknown when the support will be there as of now. We will post the update here if the situation changes.

@jakevdp
Copy link
Collaborator

jakevdp commented Apr 25, 2024

Previous report: #16435

@aboucaud
Copy link
Author

Thanks for the prompt reply. And sorry the previous issue did not catch my eye.

If I may suggest, it would be relevant to have such information displayed on
https://developer.apple.com/metal/jax/

@jakevdp jakevdp added the duplicate This issue or pull request already exists label Jun 13, 2024
@jakevdp jakevdp closed this as completed Jun 13, 2024
@aboucaud
Copy link
Author

Thanks for the hard work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apple GPU (Metal) plugin bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants