← 返回首页
Static MKL build fixes by umar456 · Pull Request #3244 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Static MKL build fixes#3244

Merged
umar456 merged 2 commits into
arrayfire:masterfrom
umar456:static_mkl_fix
Apr 20, 2022
Merged

Static MKL build fixes#3244
umar456 merged 2 commits into
arrayfire:masterfrom
umar456:static_mkl_fix

Conversation

Copy link
Copy Markdown
Member

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 merged commit 18d8131 into arrayfire:master Apr 20, 2022
umar456 deleted the static_mkl_fix branch April 20, 2022 03:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.