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

MKL doesn't work with an array longer than 2^24 points #4395

Closed
spxiwh opened this issue Jun 10, 2023 · 4 comments
Closed

MKL doesn't work with an array longer than 2^24 points #4395

spxiwh opened this issue Jun 10, 2023 · 4 comments

Comments

@spxiwh
Copy link
Contributor

spxiwh commented Jun 10, 2023

If one tries to run the LISA inference example using an MKL backend the code fails with Intel MKL DFTI ERROR: Invalid configuration parameters. I believe this is the same error as IntelPython/mkl_fft#57, and seemed to be caused there by array sizes > 2^24. (Indeed the LISA example first successfully does an FFT of length 12614400 before failing at length 19457280).

LIGO arrays are generally not as long as this, but it will be common to have lengths like this in LISA, so avoiding MKL in that context might be needed (especially if we move to MKL as default FFT backend).

@ahnitz
Copy link
Member

ahnitz commented Jun 15, 2023

To add to this, it does work if you keep to powers of 2, but after 2**24, it seems that any other length returns this error.

@ahnitz
Copy link
Member

ahnitz commented Jun 15, 2023

Shot in the dark, but in case someone on the community forums has a suggestion, I made a post here https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-DFTI-ERROR-Invalid-configuration-parameters-for-1d-FFT/m-p/1496284#M34669

@GarethCabournDavies
Copy link
Contributor

Can this be closed as fixed by #4583?

@spxiwh
Copy link
Contributor Author

spxiwh commented Jun 11, 2024

Yes

@spxiwh spxiwh closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants