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

fix: BLAS batch strided needs sufficiently new MKL #49

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

hmenke
Copy link
Member

@hmenke hmenke commented Sep 29, 2023

No description provided.

@hmenke
Copy link
Member Author

hmenke commented Sep 29, 2023

Just realized that there are no MKL tests in the CI, because I made a mistake in the original commit, yet the CI still passed.

@Wentzell
Copy link
Member

Thank you @hmenke for adding this check.

I have enabled the ubuntul-intel builds in our Jenkins CI now also for nda.

@Wentzell
Copy link
Member

Do you have a reference that shows that those functions were introduced in this specific version?

@hmenke
Copy link
Member Author

hmenke commented Sep 29, 2023

I just guessed, because I noticed that it was present in 2020.4 but absent in 2020.0. Unfortunately it's not mentioned in the changelog when it was introduced so I just downloaded all past version from the repo and grepped through them, see the commit message.

First introduced in Intel MKL 2020.2

Unfortunately this is not mentioned in any changelog
https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-math-kernel-library-release-notes-and-new-features.html

$ curl -sSfL https://apt.repos.intel.com/mkl/dists/all/main/binary-all/Packages |
    awk '/^Filename/ && /intel-mkl-common-c-2020/ { print $2 }' |
    xargs -I{} curl -sSfLO 'https://apt.repos.intel.com/mkl/{}'
$ for pkg in intel-mkl-common-c-2020*.deb; { ar x "$pkg" data.tar.xz && tar xJf data.tar.xz; }
$ grep -r dgemm_batch_strided ./opt/intel/compilers_and_libraries_*/linux/mkl/include/mkl_blas.h
./opt/intel/compilers_and_libraries_2020.2.254/linux/mkl/include/mkl_blas.h:void dgemm_batch_strided(const char *transa, const char *transb, const MKL_INT *m, const MKL_INT *n, const MKL_INT *k,
./opt/intel/compilers_and_libraries_2020.3.279/linux/mkl/include/mkl_blas.h:void dgemm_batch_strided(const char *transa, const char *transb, const MKL_INT *m, const MKL_INT *n, const MKL_INT *k,
./opt/intel/compilers_and_libraries_2020.4.304/linux/mkl/include/mkl_blas.h:void dgemm_batch_strided(const char *transa, const char *transb, const MKL_INT *m, const MKL_INT *n, const MKL_INT *k,
Copy link
Member

@Wentzell Wentzell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @hmenke for this improvement!

@Wentzell Wentzell merged commit afe223e into TRIQS:unstable Sep 29, 2023
4 checks passed
@hmenke
Copy link
Member Author

hmenke commented Sep 29, 2023

Please also cherry-pick this onto 1.2.x

@Wentzell
Copy link
Member

Please also cherry-pick this onto 1.2.x

Done

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.

2 participants