Files
concrete/backends/concrete-cpu/implementation/Cargo.toml
Arthur Meyre 2d3dc73ab8 chore(backend): fix nightly feature which was not forwarded to TFHE-rs
- this will allow to have AVX512 on x86 machines which have the hardware
feature available if concrete-cpu is built with a rust nightly toolchain
and the nightly feature enabled
2024-01-04 14:38:06 +01:00

72 lines
1.7 KiB
TOML

[package]
name = "concrete-cpu"
version = "0.1.0"
edition = "2021"
license = "BSD-3-Clause-Clear"
[lib]
name = "concrete_cpu"
crate-type = ["lib", "staticlib"]
[dependencies]
concrete-csprng = { version = "0.4", optional = true, features = [
"generator_fallback",
] }
concrete-cpu-noise-model = { path = "../noise-model/" }
concrete-security-curves = { path = "../../../tools/parameter-curves/concrete-security-curves-rust" }
libc = { version = "0.2", default-features = false }
pulp = { version = "0.10", default-features = false }
dyn-stack = { version = "0.9", default-features = false }
readonly = "0.2"
aligned-vec = { version = "0.5", default-features = false }
concrete-fft = { version = "0.2.1", default-features = false }
bytemuck = "1.12"
num-complex = { version = "0.4", default-features = false, features = [
"bytemuck",
] }
rayon = { version = "1.6", optional = true }
once_cell = { version = "1.16", optional = true }
tfhe = { version = "0.4", features = [] }
[target.x86_64-unknown-unix-gnu.dependencies]
tfhe = { version = "0.4", features = ["x86_64-unix"] }
[target.aarch64-unknown-unix-gnu.dependencies]
tfhe = { version = "0.4", features = ["aarch64-unix"] }
[target.x86_64-pc-windows-gnu.dependencies]
tfhe = { version = "0.4", features = ["x86_64"] }
[features]
default = ["parallel", "std", "csprng"]
std = [
"concrete-fft/std",
"aligned-vec/std",
"dyn-stack/std",
"pulp/std",
"once_cell",
]
csprng = ["concrete-csprng"]
parallel = ["rayon"]
nightly = ["pulp/nightly", "concrete-fft/nightly", "tfhe/nightly-avx512"]
[build-dependencies]
cbindgen = "0.24"
[dev-dependencies]
criterion = "0.4"
[[bench]]
name = "bench"
harness = false
[profile.test]
overflow-checks = true
[profile.dev]
opt-level = 3
overflow-checks = true