Skip to content

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