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

Properly pin MPICH_jll #2488

Closed
wants to merge 1 commit into from
Closed

Properly pin MPICH_jll #2488

wants to merge 1 commit into from

Conversation

navidcy
Copy link
Collaborator

@navidcy navidcy commented Apr 28, 2022

According to https://pkgdocs.julialang.org/v1/compatibility/, MPICH_jll = "4.0.1" means [4.0.1 - 5.0.0) and it's not what we wanted!

(And indeed, when I called using Pkg; Pkg.update() MPICH_jll got updated to 4.0.2.)

according to https://pkgdocs.julialang.org/v1/compatibility/, `MPICH_jll = "4.0.1"` means `[4.0.1 - 5.0.0)` and it's not what we want!
@navidcy navidcy added the package 📦 Quite meta label Apr 28, 2022
@navidcy navidcy requested a review from glwagner April 28, 2022 08:49
@glwagner
Copy link
Member

Thanks @navidcy

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

approve?

@glwagner
Copy link
Member

approve?

was on my phone 🥺

@glwagner
Copy link
Member

I'll merge when tests pass!

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

cool, do that... and register a new version!

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

I paused the release of 0.75.3 when I realised the pinning was not done correctly.

@glwagner
Copy link
Member

I paused the release of 0.75.3 when I realised the pinning was not done correctly.

wow, I didn't know you could do that

@vchuravy
Copy link
Collaborator

I don't think we should pin a indirect dependency. Using Julia 1.7 with Mac M1 is decidedly unsupported and the user can do the pinning in their Project.toml

@glwagner
Copy link
Member

I don't think we should pin a indirect dependency. Using Julia 1.7 with Mac M1 is decidedly unsupported and the user can do the pinning in their Project.toml

Ah, I didn't realize this was specifically a Mac M1 issue.

I think we'll continue to get issues and questions about this error if we don't do something about it (and its very inconvenient for this important subset of users). What's the best way to solve this problem?

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

There is a Mac M1 version of Julia at https://julialang.org/downloads/ so people will download that and try to use Oceananigans with it...

@glwagner
Copy link
Member

Maybe @vchuravy's point is that it's labeled "experimental" so problems are expected. So we either live with inconvenience (experimental=inconvenience expected) or use temporary dirty solutions like this.

I guess from "our perspective", 1.7 "basically works" except for this. So while it's experimental on M series in general, it seems we "want" to label it as supported via this PR. Maybe we shouldn't.

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

I agree ghat is not optimal to pin an indirect dep (which we made direct now). But if that solves issue for some users let’s do it.

@vchuravy
Copy link
Collaborator

Any code using threading is eventually just going to hang on M1. My point is that Oceanigans should not be working around this for the user since it declares an unecessary dependency for everyone else. Users can pin mpich_jll locally if needed.

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

Any code using threading is eventually just going to hang on M1.

Interesting. I didn't know that!

@vchuravy
Copy link
Collaborator

In particular JuliaLang/julia#41820

@navidcy navidcy changed the title Properly pin MPICH_jll ~Properly pin MPICH_jll~ Apr 28, 2022
@navidcy navidcy changed the title ~Properly pin MPICH_jll~ Properly pin MPICH_jll Apr 28, 2022
@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

OK. How about we close this PR and open another on in which we:

  • drop the MPICH_jll direct dependency
  • add a remark in the docs for how people need to work around that for julia 1.7 + Mac M1s

@navidcy
Copy link
Collaborator Author

navidcy commented Apr 28, 2022

Closing this in favor of #2496

@navidcy navidcy closed this Apr 28, 2022
@vchuravy vchuravy deleted the ncc/proper-pin branch April 29, 2022 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package 📦 Quite meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants