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

[wip] Gpu rebase inprog #107

Closed
wants to merge 3 commits into from

Conversation

aeyakovenko
Copy link
Member

need some help with the borrow checker :)

sakridge and others added 2 commits April 4, 2018 07:55
split out processing into a separate thread

closer

wip

update

wip

update

ffi

wip

wip

wip

wip

update

wip

wip

wip

wip

builds!

update

s/packet_size/packet_data_size/g

wip

s/packet_size/packet_data_size

dont sigverify tx as well

split sig and plan verify

update

update

update

build

update

256 packet limit per batch

try sending less then 256 to process
@@ -0,0 +1,8 @@
fn main() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the user doesn't have cuda libs installed or doesn't want to install them?

Copy link
Contributor

@sakridge sakridge Apr 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can have something like: if !env::var("CARGO_CFG_CUDA").is_err() { prints... }

if we have a cfg like this:
#[cfg(cuda)] => CARGO_CFG_CUDA

@@ -47,7 +47,7 @@ impl Event {
/// spending plan is valid.
pub fn verify(&self) -> bool {
match *self {
Event::Transaction(ref tr) => tr.verify(),
Event::Transaction(ref tr) => tr.plan_verify(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not have needed to make this change. I took verify() out of skel's codepath.

@@ -11,7 +11,7 @@ use std::sync::atomic::AtomicBool;
use std::sync::{Arc, Mutex};

fn main() {
let addr = "127.0.0.1:8000";
let addr = "127.0.0.1:9000";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No thanks!

@@ -8,12 +8,17 @@ use rayon::prelude::*;
use signature::{KeyPair, KeyPairUtil, PublicKey, Signature, SignatureUtil};

#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
pub struct Transaction {
pub struct Signed {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last review asked that you change this to TransactionData and that you remove 'from' from it.

@garious
Copy link
Contributor

garious commented Apr 4, 2018

ugh, a separate PR for a rebase? This throws away all the comments I made on the previous one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants