|
1 | 1 | using OpenBLAS_jll, OpenBLAS32_jll, MKL_jll, CompilerSupportLibraries_jll
|
| 2 | +using ReferenceBLAS32_jll, LAPACK32_jll, ReferenceBLAS_jll, LAPACK_jll |
2 | 3 | using Pkg, Artifacts, Base.BinaryPlatforms, Libdl, Test
|
3 | 4 |
|
4 | 5 | include("utils.jl")
|
|
124 | 125 | run_all_tests("openblas", reverse(OpenBLAS32_jll.LIBPATH_list), :LP64, "")
|
125 | 126 | end
|
126 | 127 |
|
| 128 | +@testset "Vanilla ReferenceBLAS32_jll (LP64)" begin |
| 129 | + run_all_tests("blas32", reverse(ReferenceBLAS32_jll.LIBPATH_list), :LP64, "", tests = [dgemm, sdot]) |
| 130 | +end |
| 131 | + |
| 132 | +@testset "Vanilla ReferenceBLAS_jll (ILP64)" begin |
| 133 | + run_all_tests("blas", reverse(ReferenceBLAS_jll.LIBPATH_list), :ILP64, "", tests = [dgemm, sdot]) |
| 134 | +end |
| 135 | + |
127 | 136 | # Next, build a version that links against `libblastrampoline`, and tell
|
128 | 137 | # the trampoline to forwards calls to `OpenBLAS_jll`
|
129 | 138 | lbt_link_name, lbt_dir = build_libblastrampoline()
|
|
170 | 179 | end
|
171 | 180 | end
|
172 | 181 |
|
| 182 | +@testset "LBT -> ReferenceBLAS32_jll / LAPACK32_jll (LP64)" begin |
| 183 | + libdirs = unique(vcat(lbt_dir, ReferenceBLAS32_jll.LIBPATH_list..., LAPACK32_jll.LIBPATH_list..., CompilerSupportLibraries_jll.LIBPATH_list...)) |
| 184 | + run_all_tests(blastrampoline_link_name(), libdirs, :LP64, string(ReferenceBLAS32_jll.libblas32_path, ";", LAPACK32_jll.liblapack32_path); tests = [dgemm, dpstrf, sgesv, sdot]) |
| 185 | +end |
| 186 | + |
| 187 | +# @testset "LBT -> ReferenceBLAS_jll / LAPACK_jll (ILP64)" begin |
| 188 | +# libdirs = unique(vcat(lbt_dir, ReferenceBLAS_jll.LIBPATH_list..., LAPACK_jll.LIBPATH_list..., CompilerSupportLibraries_jll.LIBPATH_list...)) |
| 189 | +# run_all_tests(blastrampoline_link_name(), libdirs, :ILP64, string(ReferenceBLAS_jll.libblas_path, ";", LAPACK_jll.liblapack_path); tests = [dgemm, dpstrf, sgesv, sdot]) |
| 190 | +# end |
| 191 | + |
173 | 192 | # Test against MKL_jll using `libmkl_rt`, which is :LP64 by default
|
174 | 193 | if MKL_jll.is_available()
|
175 | 194 | # On i686, we can't do complex return style autodetection, so we manually set it,
|
|
0 commit comments