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

Update MKL.jl to use the ILP64 interface #164

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/MKL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function set_threading_layer(layer::Threading = THREADING_SEQUENTIAL)
return nothing
end

function set_interface_layer(interface::Interface = INTERFACE_LP64)
function set_interface_layer(interface::Interface = INTERFACE_ILP64)
err = ccall((:MKL_Set_Interface_Layer, libmkl_rt), Cint, (Cint,), interface)
err == -1 && throw(ErrorException("MKL_Set_Interface_Layer() returned -1"))
return nothing
Expand All @@ -43,7 +43,7 @@ function lbt_forward_to_mkl()
# MKL 2022 and onwards have 64_ for ILP64 suffixes. The LP64 interface
# includes LP64 APIs for the non-suffixed symbols and ILP64 API for the
# 64_ suffixed symbols. LBT4 in Julia is necessary for this to work.
set_interface_layer(INTERFACE_LP64)
set_interface_layer(BASE.USE_BLAS64 ? INTERFACE_ILP64 : INTERFACE_LP64)
amontoison marked this conversation as resolved.
Show resolved Hide resolved
if Base.USE_BLAS64
# Load ILP64 forwards
BLAS.lbt_forward(libmkl_rt; clear=true, suffix_hint="64")
Expand Down