-
-
Notifications
You must be signed in to change notification settings - Fork 770
Use accelerate for Conda on macos #40520
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
Conversation
Note: added `virtual-packages.yml` to define virtual package `__osx` with a recent macOS platform so that the accelerate package can be used.
Co-authored-by: Isuru Fernando <[email protected]>
|
@dimpase it fails to build now: Do you also get this issue with #40397? |
|
Thanks for looking into this Dima! Some further investigation shows:
So we just have to wait for this last PR. |
|
Documentation preview for this PR (built with commit 6282ca5; changes) is ready! 🎉 |
|
This is now generally working, except that cython_alias fails because it still tries to find blas and not accelerate. @dimpase is it okay to remove |
|
do you talk about a specific platform (conda on macOS) ? |
No in general. We don't really require blas - accelerate works as well. |
|
this should be harmonised with sage-distro |
4df387a to
01276d7
Compare
|
Tests are green, so this is now ready for review from my side. |
|
Maybe you should after remove python 3.11 enviorment then merge this. Thank you very much. And it will cause conflict with remove python 3.11 PR. |
You right. I'll deal with the merge conflicts once the other PR is merged into |
|
Looks good to me |
dimpase
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
|
this needs an update of conda environments |
What do you mean? I've updated the conda env files a few weeks ago in this PR... |
|
I tried to rebase this over 10.8, and got lots of conflicts in environment-* (some packages are newer in 10.8 than in this branch) |
|
so you can merge, but then you still need to update environments, and push the update |
Okay, I've now updated the conda lock files. |
|
run update-meson again. because meson 1.10.0 change the format. Or you pin the version of meson to 1.9.0 |
|
update conda lock files needs a good instructon. I don't really know what this does conceptually. Does it mean to pin the versions to the latest conda state? Then it can be done in bootstrap, no need to keep these environment* files. Or does it mean to record the latest conda state the current branch is supposed to work in? Recording all the state of all packages is too much, it should suffice to record only the maximal elements state in the package poset. |
Done! Thanks
Yes, those lock files record a set of versions of conda packages where we know that CI passes without errors. The purpose is two fold:
The lock files are automatically generated but need to be updated manually. In the future it would be nice to automate the process by something like dependabot/renovate. |
|
The |
|
Thanks, done in #41439 |
<!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> It's no longer used after sagemath#40520. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#41439 Reported by: Tobias Diez Reviewer(s):
Replaces openblas by accelerate in the conda env.
Note: added
virtual-packages.ymlto define virtual package__osxwith a recent macOS platform so that the accelerate package can be used.📝 Checklist
⌛ Dependencies