Skip to content

Commit

Permalink
Merge pull request #164 from JuliaLinearAlgebra/amontoison-patch-1
Browse files Browse the repository at this point in the history
Update MKL.jl to use the ILP64 interface
  • Loading branch information
ViralBShah authored May 14, 2024
2 parents 0738145 + 4d092b6 commit 7f85950
Showing 1 changed file with 2 additions and 2 deletions.
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)
if Base.USE_BLAS64
# Load ILP64 forwards
BLAS.lbt_forward(libmkl_rt; clear=true, suffix_hint="64")
Expand Down

0 comments on commit 7f85950

Please sign in to comment.