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

Avoid calling DIRECT codepath in DYNAMIC_ARCH on non-SKX #2527

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Avoid calling DIRECT codepath in DYNAMIC_ARCH on non-SKX #2527

merged 1 commit into from
Mar 23, 2020

Conversation

martin-frbg
Copy link
Collaborator

#2526 (possibly #2524 as well)

@mattip
Copy link
Contributor

mattip commented Mar 22, 2020

One way to test this would be to add a x64 run on azure pipelines, which I think has non-SKX hardware (at least that is my operative assumption from the bug report).

@martin-frbg
Copy link
Collaborator Author

I have both kinds of hardware available locally, just need to get things organized as I need the SKX for other tasks as well.

@mattip
Copy link
Contributor

mattip commented Mar 23, 2020

one macOS test did not start

@martin-frbg
Copy link
Collaborator Author

Travis appears to have some ongoing problems with their MacOS hosts, I have been restarting CI jobs where necessary over the weekend. Still not sure if this PR is actually needed.

@martin-frbg martin-frbg merged commit 9f67d03 into OpenMathLib:develop Mar 23, 2020
@mattip
Copy link
Contributor

mattip commented Mar 26, 2020

This is failing to buld in some configurations of MacPython/openblas-libs#28:

make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=64

gemm.c: In function ‘cblas_sgemm’:

gemm.c:276:19: error: ‘gotoblas_SKYLAKEX’ undeclared (first use in this function); did you mean ‘gotoblas_t’?

  if (gotoblas == &gotoblas_SKYLAKEX)

                   ^~~~~~~~~~~~~~~~~

                   gotoblas_t

@martin-frbg
Copy link
Collaborator Author

Thanks for the feedback. Could that be a configuration that does not have AVX512 ? Otherwise it is unclear to me why gotoblas_SKYLAKEX could be unknown.

@mattip
Copy link
Contributor

mattip commented Mar 26, 2020

apparently :) I am not sure how travis CI chooses what hardware for each option in the matrix

@martin-frbg
Copy link
Collaborator Author

Some pretty poor logic I put in there... this just won't be known at compile time unless the planets happen to be lined up correctly. I'll see if simply checking for core SKYLAKEX being defined does the trick.

@mattip
Copy link
Contributor

mattip commented Mar 26, 2020

No pressure. Please xref #2526 from the new PR so I can try it out.

@martin-frbg
Copy link
Collaborator Author

Probably makes more sense to expose the support_avx512 function that is already in dynamic.c and call that at runtime ... testing this now.

@leezu
Copy link
Contributor

leezu commented May 26, 2020

@martin-frbg is there any plan to release an OpenBLAS version including this fix shortly? If not, how about backporting the fix to 0.3.9 and releasing 0.3.9b?

Thank you!

leezu added a commit to leezu/mxnet that referenced this pull request May 26, 2020
@martin-frbg
Copy link
Collaborator Author

@leezu early June would certainly make sense (3 months since last release), not sure if I can make it happen next weekend. (Not in favor of doing "b" releases unless for a very bad bug that affects many/most platforms - otherwise there would have to be a microrelease every few days)

leezu added a commit to leezu/mxnet that referenced this pull request May 26, 2020
leezu added a commit to leezu/mxnet that referenced this pull request May 26, 2020
leezu added a commit to apache/mxnet that referenced this pull request May 27, 2020
* Update to OpenBlas 0.3.10 pre-release

Includes OpenMathLib/OpenBLAS#2527

* Enable support for older architectures in OpenBLAS dynamic architecture feature
AntiZpvoh pushed a commit to AntiZpvoh/incubator-mxnet that referenced this pull request Jul 6, 2020
* Update to OpenBlas 0.3.10 pre-release

Includes OpenMathLib/OpenBLAS#2527

* Enable support for older architectures in OpenBLAS dynamic architecture feature
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

Successfully merging this pull request may close these issues.

3 participants