From 3041027c5d6f0c5fc3de3175c6d08df6bf7ae19b Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Mon, 6 May 2024 10:53:31 -0400 Subject: [PATCH 1/2] Update MKL.jl --- src/MKL.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MKL.jl b/src/MKL.jl index c2b6d11..e8e21b8 100644 --- a/src/MKL.jl +++ b/src/MKL.jl @@ -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 @@ -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") From 4d092b67ef4542f91693657596da8cbd24405a53 Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Mon, 6 May 2024 10:58:47 -0400 Subject: [PATCH 2/2] Update src/MKL.jl --- src/MKL.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MKL.jl b/src/MKL.jl index e8e21b8..69dab71 100644 --- a/src/MKL.jl +++ b/src/MKL.jl @@ -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(BASE.USE_BLAS64 ? INTERFACE_ILP64 : 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")