fix: switch default running backend to openblas on x86 linux (#380)

release-0.0
Meng Zhang 2023-08-30 22:19:35 +08:00 committed by GitHub
parent 054aefaf15
commit 57baecb370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,5 +5,5 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
fi fi
if [[ "$OSTYPE" == "linux"* ]]; then if [[ "$OSTYPE" == "linux"* ]]; then
sudo apt-get -y install protobuf-compiler sudo apt-get -y install protobuf-compiler libopenblas-dev
fi fi

View File

@ -38,7 +38,7 @@ fn link_static() -> PathBuf {
config config
.define("WITH_MKL", "OFF") .define("WITH_MKL", "OFF")
.define("OPENMP_RUNTIME", "NONE") .define("OPENMP_RUNTIME", "NONE")
.define("WITH_RUY", "ON") .define("WITH_OPENBLAS", "ON")
.cxxflag("-msse4.1") .cxxflag("-msse4.1")
} else if cfg!(target_os = "macos") { } else if cfg!(target_os = "macos") {
config config