@@ -121,28 +121,28 @@ lbt_dir = joinpath(lbt_dir, binlib)
121
121
122
122
@testset " LBT -> OpenBLAS_jll ($(openblas_interface) )" begin
123
123
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])
125
125
end
126
126
127
127
# And again, but this time with OpenBLAS32_jll
128
128
@testset " LBT -> OpenBLAS32_jll (LP64)" begin
129
129
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])
131
131
end
132
132
133
133
# Test against MKL_jll using `libmkl_rt`, which is :LP64 by default
134
134
if MKL_jll. is_available ()
135
135
@testset " LBT -> MKL_jll (LP64)" begin
136
136
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)
138
138
end
139
139
140
140
# Test that we can set MKL's interface via an environment variable to select ILP64, and LBT detects it properly
141
141
if Sys. WORD_SIZE == 64
142
142
@testset " LBT -> MKL_jll (ILP64, via env)" begin
143
143
withenv (" MKL_INTERFACE_LAYER" => " ILP64" ) do
144
144
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)
146
146
end
147
147
end
148
148
end
@@ -155,13 +155,13 @@ veclib_blas_path = "/System/Library/Frameworks/Accelerate.framework/Versions/A/F
155
155
if dlopen_e (veclib_blas_path) != C_NULL
156
156
# Test that we can run BLAS-only tests without LAPACK loaded (`sgesv` test requires LAPACK symbols)
157
157
@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])
159
159
end
160
160
161
161
# With LAPACK as well, run all tests except `dgemmt`
162
162
veclib_lapack_path = " /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/libLAPACK.dylib"
163
163
@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])
165
165
end
166
166
end
167
167
@@ -171,14 +171,14 @@ blas64 = dlopen("libblas64", throw_error=false)
171
171
if blas64 != = nothing
172
172
# Test that we can run BLAS-only tests without LAPACK loaded (`sgesv` test requires LAPACK symbols, blas64 doesn't have CBLAS)
173
173
@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])
175
175
end
176
176
177
177
# Check if we have a `liblapack` and if we do, run again, this time including `sgesv`
178
178
lapack = dlopen (" liblapack64" , throw_error= false )
179
179
if lapack != = nothing
180
180
@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])
182
182
end
183
183
end
184
184
end
0 commit comments