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

Not compatible with Metal for Julia 1.11 #2120

Open
huiyuxie opened this issue Oct 18, 2024 · 2 comments
Open

Not compatible with Metal for Julia 1.11 #2120

huiyuxie opened this issue Oct 18, 2024 · 2 comments

Comments

@huiyuxie
Copy link
Member

Similar to #2108 - since the old dependencies restrict the GPUCompiler to the old one which is out of maintenance, the Metal failed to precompile see

(Trixi) pkg> add Metal
   Resolving package versions...
      Compat entries added for Metal
    Updating `~/.julia/dev/Trixi.jl/Project.toml`
⌅ [dde4c033] + Metal v0.5.1
    Updating `~/.julia/dev/Trixi.jl/Manifest.toml`
  [a9b6321e] + Atomix v0.1.0
⌅ [fa961155]  CEnum v0.5.0  v0.4.2
⌅ [0c68f7d7] + GPUArrays v9.1.0
⌅ [61eb1bfa] + GPUCompiler v0.24.5
⌃ [63c18a36] + KernelAbstractions v0.9.18
⌅ [929cbde3] + LLVM v6.6.3
⌅ [dde4c033] + Metal v0.5.1
  [d8793406] + ObjectFile v0.4.2
⌅ [e86c9b32] + ObjectiveC v1.1.0
  [6c6a2e73] + Scratch v1.2.1
  [53d494c1] + StructIO v0.3.1
  [013be700] + UnsafeAtomics v0.2.1
⌅ [d80eeb9a] + UnsafeAtomicsLLVM v0.1.5
  [6e34b625] + Bzip2_jll v1.0.8+1
  [2e619515] + Expat_jll v2.6.2+0
⌅ [dad2f222] + LLVMExtra_jll v0.0.29+0
  [7106de7a] + LibMPDec_jll v2.5.1+0
⌅ [e9f186c6] + Libffi_jll v3.2.2+1
  [0418c028] + Metal_LLVM_Tools_jll v0.5.1+0
  [93d3a430] + Python_jll v3.10.14+0
  [76ed43ae] + SQLite_jll v3.45.3+0
  [ffd25f8a] + XZ_jll v5.4.6+0
        Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
Precompiling project...
  ✗ Metal
  ✗ Metal  SpecialFunctionsExt
  12 dependencies successfully precompiled in 28 seconds. 239 already precompiled.
  2 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

And the developer from JuliaGPU said that it is not feasible to make a patch for the old GPUCompiler.

@JoshuaLampert
Copy link
Member

Just to clarify: The root cause for this is also #2108 (comment) isn't it?

@huiyuxie
Copy link
Member Author

@JoshuaLampert Yes see

(Trixi) pkg> add Metal@1.4.2
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Adapt [79e6a3ab]:
 Adapt [79e6a3ab] log:
 ├─possible versions are: 0.3.0 - 4.0.4 or uninstalled
 ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: 3.0.0 - 3.7.2
 │ └─RecursiveArrayTools [731186ca] log:
 │   ├─possible versions are: 0.16.0 - 3.27.0 or uninstalled
 │   └─restricted to versions 2.38.10 - 2 by Trixi [a7f1ee26], leaving only versions: 2.38.10
 │     └─Trixi [a7f1ee26] log:
 │       ├─possible versions are: 0.9.2 or uninstalled
 │       └─Trixi [a7f1ee26] is fixed to version 0.9.2-DEV
 └─restricted by compatibility requirements with Metal [dde4c033] to versions: 4.0.0 - 4.0.4 — no versions left
   └─Metal [dde4c033] log:
     ├─possible versions are: 0.0.1 - 1.4.2 or uninstalled
     └─restricted to versions 1.4.2 by an explicit requirement, leaving only versions: 1.4.2

@huiyuxie huiyuxie added the gpu label Nov 14, 2024
@huiyuxie huiyuxie changed the title Not compatible with Metal Not compatible with Metal for Julia 1.11 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants