Skip to content

Use ONEAPI_ROOT env variable also for looking up MKL Installation #3150

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

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

9prady9
Copy link
Member

@9prady9 9prady9 commented Jun 22, 2021

Description

If the user sets-up MKL using Intel provided setup scripts prior to building ArrayFire, all environment variables are taken care of by the Intel setup scripts. This change addresses the scenario where oneAPI basetoolkit is installed but the setup script is not run before building ArrayFire.

With this additional environment variable based lookup, in the case MKL setup script is not run, ArrayFire CMake tries to locate MKL based on ONEAPI installation root. This change essentially enables easier look up of MKL installation for building ArrayFire using oneMKL. However, note that to run the built tests/examples the user needs to make sure oneMKL libraries are available via PATH or LD_LIBRARY_PATH for runtime programs to find them.

Changes to Users

None to library users. An minor ease of use enabler for ArrayFire developers.

Checklist

  • Rebased on latest master
  • Code compiles
  • [ ] Tests pass
  • [ ] Functions added to unified API
  • [ ] Functions documented

@9prady9 9prady9 added this to the 3.8.1 milestone Jun 22, 2021
@9prady9 9prady9 requested a review from umar456 June 22, 2021 07:12
@9prady9 9prady9 merged commit a7c6950 into arrayfire:master Jun 22, 2021
@9prady9 9prady9 deleted the oneapi_root branch June 22, 2021 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants