Skip to content

Commit fd6b520

Browse files
committed
Add tests with reference BLAS and LAPACK
1 parent 48f2cf6 commit fd6b520

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ These BLAS libraries are known to work with libblastrampoline (successfully test
1313
5. Fujitsu BLAS (use in Julia through [FujitsuBLAS.jl](https://github.com/giordano/FujitsuBLAS.jl))
1414
6. [ARMPL BLAS](https://developer.arm.com/Tools%20and%20Software/Arm%20Performance%20Libraries)
1515
7. [NVPL BLAS](https://docs.nvidia.com/nvpl/_static/blas/)
16+
8. [Reference BLAS and LAPACK](https://github.com/Reference-LAPACK/lapack)
1617

1718
## Basic usage
1819

test/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[deps]
22
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
33
CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae"
4+
LAPACK32_jll = "17f450c3-bd24-55df-bb84-8c51b4b939e3"
5+
LAPACK_jll = "51474c39-65e3-53ba-86ba-03b1b862ec14"
46
MKL_jll = "856f044c-d86e-5d09-b602-aeab76dc8ba7"
57
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"
68
OpenBLAS_jll = "4536629a-c528-5b80-bd46-f80d51c5b363"
9+
ReferenceBLAS32_jll = "9e84b91c-71b0-5f24-acdc-49dbe8049396"
10+
ReferenceBLAS_jll = "ee697234-451c-51c9-b102-303d89a9c3a0"

test/runtests.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using OpenBLAS_jll, OpenBLAS32_jll, MKL_jll, CompilerSupportLibraries_jll
2+
using ReferenceBLAS32_jll, LAPACK32_jll, ReferenceBLAS_jll, LAPACK_jll
23
using Pkg, Artifacts, Base.BinaryPlatforms, Libdl, Test
34

45
include("utils.jl")
@@ -139,6 +140,16 @@ end
139140
run_all_tests(blastrampoline_link_name(), libdirs, :LP64, OpenBLAS32_jll.libopenblas_path)
140141
end
141142

143+
@testset "LBT -> ReferenceBLAS32_jll / LAPACK32_jll (LP64)" begin
144+
libdirs = unique(vcat(lbt_dir, ReferenceBLAS32_jll.LIBPATH_list..., LAPACK32_jll.LIBPATH_list..., CompilerSupportLibraries_jll.LIBPATH_list...))
145+
run_all_tests(blastrampoline_link_name(), libdirs, :LP64, string(ReferenceBLAS32_jll.libblas32_path, ";", LAPACK32_jll.liblapack32_path))
146+
end
147+
148+
@testset "LBT -> ReferenceBLAS_jll / LAPACK_jll (ILP64)" begin
149+
libdirs = unique(vcat(lbt_dir, ReferenceBLAS_jll.LIBPATH_list..., LAPACK_jll.LIBPATH_list..., CompilerSupportLibraries_jll.LIBPATH_list...))
150+
run_all_tests(blastrampoline_link_name(), libdirs, :ILP64, string(ReferenceBLAS_jll.libblas_path, ";", LAPACK_jll.liblapack_path))
151+
end
152+
142153
# Test against MKL_jll using `libmkl_rt`, which is :LP64 by default
143154
if MKL_jll.is_available()
144155
@testset "LBT -> MKL_jll (LP64)" begin

0 commit comments

Comments
 (0)