Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Sign shreds on the GPU (#6595)
Browse files Browse the repository at this point in the history
* sign gpu shreds

* wip

* checks

* tests build

* test

* tests

* test

* nits

* sign cpu test

* write out the sigs in parallel

* clippy

* cpu test

* prepare secret for gpu

* woot!

* update

* bump perf libs
  • Loading branch information
aeyakovenko authored Nov 2, 2019
1 parent 50a17fc commit 9ea3984
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 87 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ rayon = "1.2.0"
serde = "1.0.102"
serde_derive = "1.0.102"
serde_json = "1.0.41"
sha2 = "0.8.0"
solana-budget-api = { path = "../programs/budget_api", version = "0.21.0" }
solana-budget-program = { path = "../programs/budget_program", version = "0.21.0" }
solana-chacha-sys = { path = "../chacha-sys", version = "0.21.0" }
Expand Down
10 changes: 2 additions & 8 deletions core/src/cuda_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,9 @@ pub struct PinnedVec<T> {
pinnable: bool,
}

impl Reset for PinnedVec<u8> {
impl<T: Default + Clone> Reset for PinnedVec<T> {
fn reset(&mut self) {
self.resize(0, 0u8);
}
}

impl Reset for PinnedVec<u32> {
fn reset(&mut self) {
self.resize(0, 0u32);
self.resize(0, T::default());
}
}

Expand Down
6 changes: 0 additions & 6 deletions core/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ impl Reset for Packets {
}
}

impl Reset for PinnedVec<Packet> {
fn reset(&mut self) {
self.resize(0, Packet::default());
}
}

//auto derive doesn't support large arrays
impl Default for Packets {
fn default() -> Packets {
Expand Down
Loading

0 comments on commit 9ea3984

Please sign in to comment.