Skip to content

Commit c79bf27

Browse files
committed
Update OpenBLAS to version 0.3.27
1 parent e1fd795 commit c79bf27

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
lines changed

openblas-build/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ readme = "../README.md"
1212
exclude = ["test_build/"]
1313

1414
[dependencies]
15-
anyhow = "1.0.68"
16-
flate2 = "1.0.25"
17-
tar = "0.4.38"
18-
thiserror = "1.0.22"
19-
ureq = { version = "2.5.0", default-features = false, features = [
15+
anyhow = "1.0.79"
16+
flate2 = "1.0.28"
17+
tar = "0.4.40"
18+
thiserror = "1.0.56"
19+
ureq = { version = "2.9.1", default-features = false, features = [
2020
"native-certs",
2121
"native-tls",
2222
"gzip",
2323
] }
2424
native-tls = { version = "0.2.11" }
25-
walkdir = "2.3.1"
25+
walkdir = "2.4.0"

openblas-build/src/build.rs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ pub enum Target {
102102
CORTEXA57,
103103
CORTEXA72,
104104
CORTEXA73,
105+
CORTEXA76,
105106
CORTEXA510,
106107
CORTEXA710,
107108
CORTEXX1,
@@ -128,7 +129,10 @@ pub enum Target {
128129

129130
// RISC-V 64:
130131
RISCV64_GENERIC,
132+
RISCV64_ZVL128B,
131133
C910V,
134+
x280,
135+
RISCV64_ZVL236B,
132136

133137
// LOONGARCH64:
134138
LOONGSONGENERIC,
@@ -142,6 +146,10 @@ pub enum Target {
142146
EV4,
143147
EV5,
144148
EV6,
149+
150+
// CSKY
151+
CSKY,
152+
CK860FV,
145153
}
146154

147155
impl FromStr for Target {
@@ -236,6 +244,7 @@ impl FromStr for Target {
236244
"cortexa57" => Self::CORTEXA57,
237245
"cortexa72" => Self::CORTEXA72,
238246
"cortexa73" => Self::CORTEXA73,
247+
"cortexa76" => Self::CORTEXA76,
239248
"cortexa510" => Self::CORTEXA510,
240249
"cortexa710" => Self::CORTEXA710,
241250
"cortexx1" => Self::CORTEXX1,
@@ -262,12 +271,15 @@ impl FromStr for Target {
262271

263272
// RISC-V 64:
264273
"riscv64_generic" => Self::RISCV64_GENERIC,
274+
"riscv64_zvl128b" => Self::RISCV64_ZVL128B,
265275
"c910v" => Self::C910V,
276+
"x280" => Self::x280,
277+
"riscv64_zvl236b" => Self::RISCV64_ZVL236B,
266278

267279
// LOONGARCH64:
268280
"loongsongeneric" => Self::LOONGSONGENERIC,
269-
"loongson3r5" => Self::LOONGSON3R5,
270-
"loongson2k1000" => Self::LOONGSON2K1000,
281+
"longson3r5" => Self::LOONGSON3R5,
282+
"longson2k1000" => Self::LOONGSON2K1000,
271283

272284
// Elbrus E2000:
273285
"e2k" => Self::E2K,
@@ -277,6 +289,10 @@ impl FromStr for Target {
277289
"ev5" => Self::EV5,
278290
"ev6" => Self::EV6,
279291

292+
// CSKY
293+
"csky" => Self::CSKY,
294+
"ck860fv" => Self::CK860FV,
295+
280296
_ => {
281297
return Err(Error::UnsupportedTarget {
282298
target: s.to_string(),

openblas-build/src/download.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use anyhow::Result;
22
use std::path::{Path, PathBuf};
33

4-
const OPENBLAS_VERSION: &str = "0.3.25";
4+
const OPENBLAS_VERSION: &str = "0.3.27";
55

66
pub fn openblas_source_url() -> String {
77
format!(
8-
"https://github.com/xianyi/OpenBLAS/releases/download/v{}/OpenBLAS-{}.tar.gz",
8+
"https://github.com/OpenMathLib/OpenBLAS/releases/download/v{}/OpenBLAS-{}.tar.gz",
99
OPENBLAS_VERSION, OPENBLAS_VERSION
1010
)
1111
}

openblas-src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ system = []
3636
libc = "0.2"
3737

3838
[build-dependencies]
39-
dirs = "3.0.1"
39+
dirs = "5.0.1"
4040
openblas-build = { version = "0.10.9", path = "../openblas-build" }
4141

4242
[target.'cfg(target_os="windows")'.build-dependencies]

openblas-src/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ fn build() {
140140
}
141141

142142
let output = if feature_enabled("cache") {
143-
use std::{collections::hash_map::DefaultHasher, hash::*};
143+
use std::hash::*;
144144
// Build OpenBLAS on user's data directory.
145-
// See https://docs.rs/dirs/3.0.1/dirs/fn.data_dir.html
145+
// See https://docs.rs/dirs/5.0.1/dirs/fn.data_dir.html
146146
//
147147
// On Linux, `data_dir` returns `$XDG_DATA_HOME` or `$HOME/.local/share`.
148148
// This build script creates a directory based on the hash value of `cfg`,

0 commit comments

Comments
 (0)