Skip to content

Static MKL build fixes #3244

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 2 commits into from
Apr 20, 2022
Merged

Static MKL build fixes #3244

merged 2 commits into from
Apr 20, 2022

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Apr 19, 2022

Fix build when AF_WITH_STATIC_MKL is set to ON.

Description

Changes to Users

N/A

Checklist

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

umar456 added 2 commits April 19, 2022 17:44
We only need to call the mkl_set_threading_layer and mkl_set_interface_layer
functions for shared library builds of MKL. Static builds do not need those
functions.
The unified backend was linking to the OpenCL library. This was done
to include the header but the library was also linking. Fixed this issue
by using the INTERFACE_INCLUDE_DIRECTORIES generator expression to include
the OpenCL header
@umar456 umar456 merged commit 18d8131 into arrayfire:master Apr 20, 2022
@umar456 umar456 deleted the static_mkl_fix branch April 20, 2022 03:26
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.

Static linking afcpu with MKL does nt work anymore with the 3.8 branch
2 participants