Skip to content

Commit

Permalink
Merge pull request #2092 from subspace/small-pos-tweaks
Browse files Browse the repository at this point in the history
Small PoS tweaks
  • Loading branch information
nazar-pc authored Oct 12, 2023
2 parents 8e598d1 + 6ec3001 commit a2ea7ad
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
10 changes: 4 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/sc-consensus-subspace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parking_lot = "0.12.1"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/subspace/polkadot-sdk", rev = "920fb277d5ea16a3b0918052c7555026a1ac2c6c", version = "0.10.0-dev" }
rand = "0.8.5"
rand_chacha = "0.3.1"
rayon = "1.7.0"
rayon = "1.8.0"
schnorrkel = "0.9.1"
sc-client-api = { version = "4.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "920fb277d5ea16a3b0918052c7555026a1ac2c6c" }
sc-consensus = { version = "0.10.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "920fb277d5ea16a3b0918052c7555026a1ac2c6c" }
Expand Down
2 changes: 1 addition & 1 deletion crates/sc-proof-of-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sp-runtime = { version = "24.0.0", git = "https://github.com/subspace/polkadot-s
subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives" }
subspace-proof-of-time = { version = "0.1.0", path = "../subspace-proof-of-time" }
parking_lot = "0.12.1"
rayon = "1.7.0"
rayon = "1.8.0"
thiserror = "1.0.48"
tokio = { version = "1.32.0", features = ["macros", "time"] }
tracing = "0.1.37"
2 changes: 1 addition & 1 deletion crates/subspace-archiving/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bench = false

[dependencies]
parity-scale-codec = { version = "3.6.5", default-features = false, features = ["derive"] }
rayon = { version = "1.7.0", optional = true }
rayon = { version = "1.8.0", optional = true }
serde = { version = "1.0.183", optional = true, features = ["derive"] }
subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", default-features = false }
subspace-erasure-coding = { version = "0.1.0", path = "../subspace-erasure-coding", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-core-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ kzg = { git = "https://github.com/subspace/rust-kzg", rev = "1058cc8c8af8461b490
num-traits = { version = "0.2.16", default-features = false }
parity-scale-codec = { version = "3.6.5", default-features = false, features = ["derive", "max-encoded-len"] }
parking_lot = { version = "0.12.1", optional = true }
rayon = { version = "1.7.0", optional = true }
rayon = { version = "1.8.0", optional = true }
scale-info = { version = "2.7.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.183", optional = true, features = ["alloc", "derive"] }
serde_arrays = { version = "0.1.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-farmer-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ libc = "0.2.146"
lru = "0.11.0"
parity-scale-codec = "3.6.5"
rand = "0.8.5"
rayon = "1.7.0"
rayon = "1.8.0"
schnorrkel = "0.9.1"
serde = { version = "1.0.183", features = ["derive"] }
static_assertions = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/subspace-farmer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ parity-scale-codec = "3.6.5"
parking_lot = "0.12.1"
prometheus-client = "0.21.2"
rand = "0.8.5"
rayon = "1.7.0"
rayon = "1.8.0"
schnorrkel = "0.9.1"
serde = { version = "1.0.183", features = ["derive"] }
serde_json = "1.0.106"
Expand Down
3 changes: 2 additions & 1 deletion crates/subspace-proof-of-space/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bench = false
[dependencies]
chacha20 = { version = "0.9.1", default-features = false }
derive_more = "0.99.17"
rayon = { version = "1.7.0", optional = true }
rayon = { version = "1.8.0", optional = true }
seq-macro = "0.3.5"
sha2 = { version = "0.10.7", default-features = false }
subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primitives", default-features = false }
Expand All @@ -27,6 +27,7 @@ subspace-core-primitives = { version = "0.1.0", path = "../subspace-core-primiti
bitvec = "1.0.1"
criterion = "0.5.1"
rand = "0.8.5"
rayon = "1.8.0"
subspace-chiapos = { git = "https://github.com/subspace/chiapos", rev = "3b1ab3ca24764d25da30e0c8243e0bf304b776a5" }

[[bench]]
Expand Down
8 changes: 4 additions & 4 deletions crates/subspace-proof-of-space/src/chiapos/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub(super) fn compute_f1_simd<const K: u8>(
) -> [Y; COMPUTE_F1_SIMD_FACTOR] {
// Each element contains `K` desired bits of `partial_ys` in the final offset of eventual `ys`
// with the rest of bits being in undefined state
let pre_ys_bytes = Simd::from(seq!(N in 0..8 {
let pre_ys_bytes: Simd<_, COMPUTE_F1_SIMD_FACTOR> = Simd::from(seq!(N in 0..8 {
[
#(
{
Expand All @@ -212,7 +212,7 @@ pub(super) fn compute_f1_simd<const K: u8>(
)*
]
}));
let pre_ys_right_offset = Simd::from(seq!(N in 0..8 {
let pre_ys_right_offset: Simd<_, COMPUTE_F1_SIMD_FACTOR> = Simd::from(seq!(N in 0..8 {
[
#(
{
Expand Down Expand Up @@ -515,7 +515,7 @@ where
.array_chunks::<{ K as usize * COMPUTE_F1_SIMD_FACTOR / u8::BITS as usize }>()
.copied(),
) {
let xs = seq!(N in 0..8 {
let xs: [_; COMPUTE_F1_SIMD_FACTOR] = seq!(N in 0..8 {
[
#(
#[allow(clippy::erasing_op, clippy::identity_op)]
Expand Down Expand Up @@ -551,7 +551,7 @@ where
.array_chunks::<{ K as usize * COMPUTE_F1_SIMD_FACTOR / u8::BITS as usize }>()
.copied(),
) {
let xs = seq!(N in 0..8 {
let xs: [_; COMPUTE_F1_SIMD_FACTOR] = seq!(N in 0..8 {
[
#(
#[allow(clippy::erasing_op, clippy::identity_op)]
Expand Down

0 comments on commit a2ea7ad

Please sign in to comment.