Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OpenBLAS to version 0.3.27 #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions openblas-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ readme = "../README.md"
exclude = ["test_build/"]

[dependencies]
anyhow = "1.0.68"
flate2 = "1.0.25"
tar = "0.4.38"
thiserror = "1.0.22"
ureq = { version = "2.5.0", default-features = false, features = [
anyhow = "1.0.79"
flate2 = "1.0.28"
tar = "0.4.40"
thiserror = "1.0.56"
ureq = { version = "2.9.1", default-features = false, features = [
"native-certs",
"native-tls",
"gzip",
] }
native-tls = { version = "0.2.11" }
walkdir = "2.3.1"
walkdir = "2.4.0"
20 changes: 18 additions & 2 deletions openblas-build/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ pub enum Target {
CORTEXA57,
CORTEXA72,
CORTEXA73,
CORTEXA76,
CORTEXA510,
CORTEXA710,
CORTEXX1,
Expand All @@ -128,7 +129,10 @@ pub enum Target {

// RISC-V 64:
RISCV64_GENERIC,
RISCV64_ZVL128B,
C910V,
x280,
RISCV64_ZVL236B,

// LOONGARCH64:
LOONGSONGENERIC,
Expand All @@ -142,6 +146,10 @@ pub enum Target {
EV4,
EV5,
EV6,

// CSKY
CSKY,
CK860FV,
}

impl FromStr for Target {
Expand Down Expand Up @@ -236,6 +244,7 @@ impl FromStr for Target {
"cortexa57" => Self::CORTEXA57,
"cortexa72" => Self::CORTEXA72,
"cortexa73" => Self::CORTEXA73,
"cortexa76" => Self::CORTEXA76,
"cortexa510" => Self::CORTEXA510,
"cortexa710" => Self::CORTEXA710,
"cortexx1" => Self::CORTEXX1,
Expand All @@ -262,12 +271,15 @@ impl FromStr for Target {

// RISC-V 64:
"riscv64_generic" => Self::RISCV64_GENERIC,
"riscv64_zvl128b" => Self::RISCV64_ZVL128B,
"c910v" => Self::C910V,
"x280" => Self::x280,
"riscv64_zvl236b" => Self::RISCV64_ZVL236B,

// LOONGARCH64:
"loongsongeneric" => Self::LOONGSONGENERIC,
"loongson3r5" => Self::LOONGSON3R5,
"loongson2k1000" => Self::LOONGSON2K1000,
"longson3r5" => Self::LOONGSON3R5,
"longson2k1000" => Self::LOONGSON2K1000,

// Elbrus E2000:
"e2k" => Self::E2K,
Expand All @@ -277,6 +289,10 @@ impl FromStr for Target {
"ev5" => Self::EV5,
"ev6" => Self::EV6,

// CSKY
"csky" => Self::CSKY,
"ck860fv" => Self::CK860FV,

_ => {
return Err(Error::UnsupportedTarget {
target: s.to_string(),
Expand Down
4 changes: 2 additions & 2 deletions openblas-build/src/download.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use anyhow::Result;
use std::path::{Path, PathBuf};

const OPENBLAS_VERSION: &str = "0.3.25";
const OPENBLAS_VERSION: &str = "0.3.27";

pub fn openblas_source_url() -> String {
format!(
"https://github.com/xianyi/OpenBLAS/releases/download/v{}/OpenBLAS-{}.tar.gz",
"https://github.com/OpenMathLib/OpenBLAS/releases/download/v{}/OpenBLAS-{}.tar.gz",
OPENBLAS_VERSION, OPENBLAS_VERSION
)
}
Expand Down
2 changes: 1 addition & 1 deletion openblas-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ system = []
libc = "0.2"

[build-dependencies]
dirs = "3.0.1"
dirs = "5.0.1"
openblas-build = { version = "0.10.9", path = "../openblas-build" }

[target.'cfg(target_os="windows")'.build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions openblas-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ fn build() {
}

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