Skip to content

Commit 37433b6

Browse files
authored
Merge pull request #9 from blas-lapack-rs/jed/blis-src-0.2.1
blis-src 0.2.1
2 parents 43dea8a + b01cc22 commit 37433b6

File tree

7 files changed

+28
-39
lines changed

7 files changed

+28
-39
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "source"]
22
path = blis-src/upstream
3-
url = https://github.com/jedbrown/blis
3+
url = https://github.com/flame/blis

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains a Rust package to build and link [BLIS], the BLAS-like
44

55
```toml
66
[dependencies]
7-
blas-src = { version = "0.7", features = ["blis"] }
7+
blas-src = { version = "0.8", features = ["blis"] }
88
```
99

1010
To access the full BLIS API, direct use of `extern "C"` is necessary at this time.

blis-src/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ authors = [
55
]
66
name = "blis-src"
77
edition = "2018"
8-
version = "0.2.1-alpha.0"
9-
license = "MIT/Apache-2.0"
8+
version = "0.2.1"
9+
license = "MIT OR Apache-2.0"
1010
description = "Rust native linking for BLIS library"
1111
repository = "https://github.com/blas-lapack-rs/blis-src"
1212
keywords = [ "blas", "blis" ]
1313
categories = [ "science" ]
14-
documentation = "http://docs.rs/blis-src"
15-
readme = "../README.md"
1614
links = "blis"
1715
exclude = [
1816
"upstream/docs/",

blis-src/README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
# Blis-sys
1+
# blis-src
22

3-
This crate provides BLAS and/or CBLAS function using [BLIS](https://github.com/flame/blis).
3+
This crate provides BLAS and/or CBLAS functions using [BLIS](https://github.com/flame/blis).
44

5-
Features:
5+
## Features:
66

7-
* `cblas`: includes cblas binding (on by default)
7+
* `cblas`: build the CBLAS interface (enabled by default)
88
* `static`: prefer static link (be very careful with this one on Apple platforms)
9-
* `system`: do not compile blis, link it from a system-wide installation instead
9+
* `pthreads` or `openmp` or `serial`: choose exactly one to specify the threading mode (`pthreads` by default)
10+
* `system`: do not compile BLIS and instead use a system-provided version (must be in system's default link path).
1011

11-
It does not provides the BLAS or CBLAS functions Rust declarations. It is meant
12-
to use the ones provides by `blas-sys` and `cblas-sys` crates instead.
12+
This package does not provides Rust declarations for BLAS or CBLAS, which
13+
are available in the [`blas-sys`](https://lib.rs/crates/blas-sys) and
14+
[`cblas-sys`](https://lib.rs/crates/cblas-sys) crates. See the [blas
15+
example](https://github.com/blas-lapack-rs/blis-src/blob/main/blis-src/tests/blas_gemm.rs) and [cblas example](https://github.com/blas-lapack-rs/blis-src/blob/main/blis-src/tests/cblas_gemm.rs)
16+
for usage.
1317

14-
See also [blas example](tests/blas_gemm.rs) or [cblas example](tests/cblas_gemm.rs).
18+
Users simply seeking a fast BLAS are encouraged to use
19+
[`blas-sys`](https://lib.rs/crates/blas-src) with the following in
20+
`Cargo.toml`:
21+
22+
```toml
23+
[dependencies]
24+
blas-src = { version = "0.8", features = ["blis"] }
25+
```

blis-src/src/lib.rs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
//! # blis-src
2-
//!
3-
//! This crate provides BLAS and/or CBLAS function using [BLIS](https://github.com/flame/blis).
4-
//!
5-
//! Features:
6-
//!
7-
//! * `cblas`: build the CBLAS interface (enabled by default)
8-
//! * `static`: prefer static link (be very careful with this one on Apple platforms)
9-
//! * `pthreads` or `openmp` or `serial`: choose exactly one to specify the threading mode (`pthreads` by default)
10-
//! * `system`: do not compile BLIS and instead use a system-provided version (must be in system's default link path).
11-
//!
12-
//! This package does not provides Rust declarations for BLAS or CBLAS, which
13-
//! are available in the [`blas-sys`](https://lib.rs/crates/blas-sys) and
14-
//! [`cblas-sys`](https://lib.rs/crates/cblas-sys) crates. See the [blas
15-
//! example](../tests/blas_gemm.rs) and [cblas example](../tests/cblas_gemm.rs)
16-
//! for usage.
17-
//!
18-
//! Users simply seeking a fast BLAS are encouraged to use
19-
//! [`blas-sys`](https://lib.rs/crates/blas-src) with the following in
20-
//! `Cargo.toml`:
21-
//!
22-
//! ```toml
23-
//! [dependencies]
24-
//! blas-src = { version = "0.7", features = ["blis"] }
25-
//! ```
1+
#![doc = include_str!("../README.md")]
262

273
#[cfg(test)]
284
mod tests {

blis-src/tests/blas_gemm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test calling Fortran `sgemm` using `blas-sys`.
2+
13
extern crate blas_sys;
24
extern crate blis_src;
35

blis-src/tests/cblas_gemm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test calling `cblas_sgemm` using `cblas-sys`.
2+
13
extern crate blis_src;
24
extern crate cblas_sys;
35

0 commit comments

Comments
 (0)