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

Circular dependency when precompiling #495

Closed
kmp5VT opened this issue Dec 11, 2024 · 1 comment
Closed

Circular dependency when precompiling #495

kmp5VT opened this issue Dec 11, 2024 · 1 comment

Comments

@kmp5VT
Copy link

kmp5VT commented Dec 11, 2024

Hello,

I am trying to add Metal.jl but the code fails to precompile due to a circular dependency. I am currently on a Mac M1 running julia 11.1

julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

To test, I grab a new temporary environment and add Metal.jl

using Pkg
Pkg.activate(temp=true)
Pkg.add("Metal")
┌ Warning: Circular dependency detected. Precompilation will be skipped for:
│   Base.PkgId(Base.UUID("66d79d19-2cc4-5b0b-ac7a-b340256d1ecd"), "LinearAlgebraExt")
│   Base.PkgId(Base.UUID("63c18a36-062a-441e-b654-da1e3ab1ce7c"), "KernelAbstractions")
│   Base.PkgId(Base.UUID("368c01e8-f8da-5dca-a1ea-818da1f33961"), "AtomixMetalExt")
│   Base.PkgId(Base.UUID("dde4c033-4e86-420c-a63e-0dd931031962"), "Metal")
└ @ Base.Precompilation precompilation.jl:511

There seems to be no issue in Julia 1.11.2

@christiangnrd
Copy link
Contributor

This is fixed in 1.11.2 (released) and 1.10.8 (not yet released).

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

2 participants