chore: build with ruy (cpu only) on static mode for linux. (#378)

* chore: build with ruy (cpu only) on static mode for linux.

* update cmake min version
release-0.0
Meng Zhang 2023-08-30 18:04:40 +08:00 committed by GitHub
parent 0eb489b9ca
commit 3526ca3164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.7)
cmake_minimum_required(VERSION 3.26)
project(ctranslate2_bindings)

View File

@ -36,14 +36,10 @@ fn link_static() -> PathBuf {
if cfg!(target_os = "linux") {
config
.define("WITH_CUDA", "ON")
.define("WITH_CUDNN", "ON")
.define("WITH_MKL", "ON")
.define("WITH_DNNL", "ON")
.define("OPENMP_RUNTIME", "COMP")
.define("WITH_MKL", "OFF")
.define("OPENMP_RUNTIME", "NONE")
.define("WITH_RUY", "ON")
.cxxflag("-msse4.1")
.define("CUDA_NVCC_FLAGS", "-Xfatbin=-compress-all")
.define("CUDA_ARCH_LIST", "Common")
} else if cfg!(target_os = "macos") {
config
.define("CMAKE_OSX_ARCHITECTURES", "arm64")