Skip to content

Commit

Permalink
fix(executor): fix optimization profile for release target
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniupop committed Oct 10, 2024
1 parent e2b57bb commit 410565d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions fhevm-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ rayon = "1.10.0"
[profile.dev.package.tfhe]
overflow-checks = false

# for testing in release mode due to too big
# binary inside mac
[profile.release]
opt-level = "z"
# for testing in release mode due to too big binary inside mac:
# set opt-level = "z"
# however, this leads to 2-4x slower execution due to loss of loop
# vectorization
opt-level = 3
lto = "fat"
4 changes: 2 additions & 2 deletions fhevm-engine/fhevm-engine-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.1.0"
edition = "2021"

[target.'cfg(target_arch = "x86_64")'.dependencies]
tfhe = { version = "0.8.2", features = ["boolean", "shortint", "integer", "x86_64-unix", "zk-pok", "experimental-force_fft_algo_dif4"] }
tfhe = { version = "0.8.2", features = ["boolean", "shortint", "integer", "x86_64-unix", "zk-pok", "experimental-force_fft_algo_dif4", "nightly-avx512"] }
[target.'cfg(target_arch = "aarch64")'.dependencies]
tfhe = { version = "0.8.2", features = ["boolean", "shortint", "integer", "aarch64-unix", "zk-pok", "experimental-force_fft_algo_dif4"] }
tfhe = { version = "0.8.2", features = ["boolean", "shortint", "integer", "aarch64-unix", "zk-pok", "experimental-force_fft_algo_dif4", "nightly-avx512"] }

[dependencies]
sha3.workspace = true
Expand Down

0 comments on commit 410565d

Please sign in to comment.