Skip to content

Commit 44c2819

Browse files
committed
Create OpenBLAS32
1 parent efe78dd commit 44c2819

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

Project.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name = "OpenBLAS32"
22
uuid = "51095b67-9e93-468d-a683-508b52f74e81"
3-
authors = ["Viral B. Shah <[email protected]> and contributors"]
4-
version = "1.0.0-DEV"
3+
authors = ["Viral B. Shah <[email protected]>"]
4+
version = "0.1.0"
5+
6+
[deps]
7+
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"
8+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
59

610
[compat]
711
julia = "1.8"

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
# OpenBLAS32
1+
# OpenBLAS32.jl
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaLinearAlgebra.github.io/OpenBLAS32.jl/stable/)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaLinearAlgebra.github.io/OpenBLAS32.jl/dev/)
55
[![Build Status](https://github.com/JuliaLinearAlgebra/OpenBLAS32.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/JuliaLinearAlgebra/OpenBLAS32.jl/actions/workflows/CI.yml?query=branch%3Amain)
6+
7+
A simple package that depends on OpenBLAS32_jll, and sets up the
8+
forwarding for LP64 BLAS symbols on 64-bit architectures using
9+
`libblastrampoline` that ships with Julia. On 32-bit architectures,
10+
this package does nothing.
11+
12+
This package makes the following possible:
13+
1. JLLs of libraries need an LP64 BLAS can now link to libblastrampoline
14+
2. Users who want to use an LP64 BLAS will use libblastrampoline JLLs and include a dependency on OpenBLAS32.jl
15+
3. LP64 OpenBLAS will thus work out of the box as before
16+
4. However, since the underlying libraries are linked against libblastrampoline, users can also switch to different BLAS provider such as MKL or AppleAccelerate

src/OpenBLAS32.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
module OpenBLAS32
22

3-
# Write your package code here.
3+
using OpenBLAS32_jll, LinearAlgebra
4+
5+
function __init__()
6+
if OpenBLAS32_jll.is_available()
7+
if Base.USE_BLAS64
8+
BLAS.lbt_forward(libopenblas)
9+
end
10+
end
11+
end
412

513
end

0 commit comments

Comments
 (0)