-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add Accelerate framework blas__ldflags
tests
#1056
Conversation
Running the whole test suite is probably overkill. Can we just pick some smoke tests besides the flag check? |
I suppose that the blas tests |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1056 +/- ##
==========================================
+ Coverage 81.95% 82.09% +0.14%
==========================================
Files 182 182
Lines 47872 47901 +29
Branches 8618 8631 +13
==========================================
+ Hits 39233 39325 +92
+ Misses 6472 6410 -62
+ Partials 2167 2166 -1
|
656f9d0
to
ae3c72d
Compare
I'll have to refactor some tests because the extra condition I added doesn't rely on the same file existence logic that the other conditions did, and the mocks I had in place fail there |
37c5713
to
bacc9df
Compare
I hope to have fixed my mocks now. @maresb, I'm having a dumb problem with the macos-latest runner. I don't know why, the runner doesn't have md5sum and fails to generate the matrix id. Do you have any idea of an alternative that could work on that runner? Locally, I do have both |
@ricardoV94, I have no idea what went wrong with the single blas test that failed on the mac run. Could you have a look? Is it worth fixing or should we skip that test on Mac? |
Can you reproduce locally? Seems meaningful |
418ec05
to
cc614ea
Compare
cc614ea
to
826535d
Compare
You were totally right, @ricardoV94! This small test turned out to indicate that the link flags were wrong and that |
826535d
to
8307af1
Compare
@ricardoV94, the codecov patch difference isn't significant. The changes I made removed coverage from a couple of lines, and I don't think that it's worth it to prevent the merge just because of that. |
The silent failures should be resolved by mamba-org/setup-micromamba#241 |
Description
This just adds a test of the
Accelerate
framework flag to test inblas__ldflags
.I haven't written a test because it proved to be a PITA. I've tested it locally and it seems to work. The only thing that I can say is that we should run the test suite on Mac and ensure that theI written a test to mock this, but I've also added a macos-latest runner that tries to test blas, and also asserts that the blas__ldflags get set to accelerate.blas__ldflags
should be-framework Accelerate -rpath some_path
.Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pytensor--1056.org.readthedocs.build/en/1056/