@@ -121,28 +121,28 @@ lbt_dir = joinpath(lbt_dir, binlib)
121121
122122@testset " LBT -> OpenBLAS_jll ($(openblas_interface) )" begin
123123 libdirs = unique (vcat (lbt_dir, OpenBLAS_jll. LIBPATH_list... , CompilerSupportLibraries_jll. LIBPATH_list... ))
124- run_all_tests (" blastrampoline " , libdirs, openblas_interface, OpenBLAS_jll. libopenblas_path, tests= [dgemm, sgesv, sdot, zdotc])
124+ run_all_tests (blastrampoline_link_name () , libdirs, openblas_interface, OpenBLAS_jll. libopenblas_path, tests= [dgemm, sgesv, sdot, zdotc])
125125end
126126
127127# And again, but this time with OpenBLAS32_jll
128128@testset " LBT -> OpenBLAS32_jll (LP64)" begin
129129 libdirs = unique (vcat (lbt_dir, OpenBLAS32_jll. LIBPATH_list... , CompilerSupportLibraries_jll. LIBPATH_list... ))
130- run_all_tests (" blastrampoline " , libdirs, :LP64 , OpenBLAS32_jll. libopenblas_path, tests= [dgemm, sgesv, sdot, zdotc])
130+ run_all_tests (blastrampoline_link_name () , libdirs, :LP64 , OpenBLAS32_jll. libopenblas_path, tests= [dgemm, sgesv, sdot, zdotc])
131131end
132132
133133# Test against MKL_jll using `libmkl_rt`, which is :LP64 by default
134134if MKL_jll. is_available ()
135135 @testset " LBT -> MKL_jll (LP64)" begin
136136 libdirs = unique (vcat (lbt_dir, MKL_jll. LIBPATH_list... , CompilerSupportLibraries_jll. LIBPATH_list... ))
137- run_all_tests (" blastrampoline " , libdirs, :LP64 , MKL_jll. libmkl_rt_path)
137+ run_all_tests (blastrampoline_link_name () , libdirs, :LP64 , MKL_jll. libmkl_rt_path)
138138 end
139139
140140 # Test that we can set MKL's interface via an environment variable to select ILP64, and LBT detects it properly
141141 if Sys. WORD_SIZE == 64
142142 @testset " LBT -> MKL_jll (ILP64, via env)" begin
143143 withenv (" MKL_INTERFACE_LAYER" => " ILP64" ) do
144144 libdirs = unique (vcat (lbt_dir, MKL_jll. LIBPATH_list... , CompilerSupportLibraries_jll. LIBPATH_list... ))
145- run_all_tests (" blastrampoline " , libdirs, :ILP64 , MKL_jll. libmkl_rt_path)
145+ run_all_tests (blastrampoline_link_name () , libdirs, :ILP64 , MKL_jll. libmkl_rt_path)
146146 end
147147 end
148148 end
@@ -155,13 +155,13 @@ veclib_blas_path = "/System/Library/Frameworks/Accelerate.framework/Versions/A/F
155155if dlopen_e (veclib_blas_path) != C_NULL
156156 # Test that we can run BLAS-only tests without LAPACK loaded (`sgesv` test requires LAPACK symbols)
157157 @testset " LBT -> vecLib/libBLAS" begin
158- run_all_tests (" blastrampoline " , [lbt_dir], :LP64 , veclib_blas_path; tests= [dgemm, sdot, zdotc])
158+ run_all_tests (blastrampoline_link_name () , [lbt_dir], :LP64 , veclib_blas_path; tests= [dgemm, sdot, zdotc])
159159 end
160160
161161 # With LAPACK as well, run all tests except `dgemmt`
162162 veclib_lapack_path = " /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/libLAPACK.dylib"
163163 @testset " LBT -> vecLib/libLAPACK" begin
164- run_all_tests (" blastrampoline " , [lbt_dir], :LP64 , string (veclib_blas_path, " ;" , veclib_lapack_path), tests= [dgemm, sgesv, sdot, zdotc])
164+ run_all_tests (blastrampoline_link_name () , [lbt_dir], :LP64 , string (veclib_blas_path, " ;" , veclib_lapack_path), tests= [dgemm, sgesv, sdot, zdotc])
165165 end
166166end
167167
@@ -171,14 +171,14 @@ blas64 = dlopen("libblas64", throw_error=false)
171171if blas64 != = nothing
172172 # Test that we can run BLAS-only tests without LAPACK loaded (`sgesv` test requires LAPACK symbols, blas64 doesn't have CBLAS)
173173 @testset " LBT -> libblas64 (ILP64, BLAS)" begin
174- run_all_tests (" blastrampoline " , [lbt_dir], :ILP64 , dlpath (blas64); tests= [dgemm, sdot])
174+ run_all_tests (blastrampoline_link_name () , [lbt_dir], :ILP64 , dlpath (blas64); tests= [dgemm, sdot])
175175 end
176176
177177 # Check if we have a `liblapack` and if we do, run again, this time including `sgesv`
178178 lapack = dlopen (" liblapack64" , throw_error= false )
179179 if lapack != = nothing
180180 @testset " LBT -> libblas64 + liblapack64 (ILP64, BLAS+LAPACK)" begin
181- run_all_tests (" blastrampoline " , [lbt_dir], :ILP64 , " $(dlpath (blas64)) ;$(dlpath (lapack)) " ; tests= [dgemm, sdot, sgesv])
181+ run_all_tests (blastrampoline_link_name () , [lbt_dir], :ILP64 , " $(dlpath (blas64)) ;$(dlpath (lapack)) " ; tests= [dgemm, sdot, sgesv])
182182 end
183183 end
184184end
0 commit comments