Call gpu init earlier to force compilation. (#5902)
This commit is contained in:
parent
a6479eb6e9
commit
ceacc42126
|
@ -16,6 +16,7 @@ use crate::rpc_pubsub_service::PubSubService;
|
||||||
use crate::rpc_service::JsonRpcService;
|
use crate::rpc_service::JsonRpcService;
|
||||||
use crate::rpc_subscriptions::RpcSubscriptions;
|
use crate::rpc_subscriptions::RpcSubscriptions;
|
||||||
use crate::service::Service;
|
use crate::service::Service;
|
||||||
|
use crate::sigverify;
|
||||||
use crate::snapshot_utils;
|
use crate::snapshot_utils;
|
||||||
use crate::storage_stage::StorageState;
|
use crate::storage_stage::StorageState;
|
||||||
use crate::tpu::Tpu;
|
use crate::tpu::Tpu;
|
||||||
|
@ -119,23 +120,12 @@ impl Validator {
|
||||||
warn!("vote pubkey: {:?}", vote_account);
|
warn!("vote pubkey: {:?}", vote_account);
|
||||||
warn!("CUDA is {}abled", if cfg!(cuda) { "en" } else { "dis" });
|
warn!("CUDA is {}abled", if cfg!(cuda) { "en" } else { "dis" });
|
||||||
info!("entrypoint: {:?}", entrypoint_info_option);
|
info!("entrypoint: {:?}", entrypoint_info_option);
|
||||||
info!("{:?}", node.info);
|
|
||||||
info!(
|
Self::print_node_info(&node);
|
||||||
"local gossip address: {}",
|
|
||||||
node.sockets.gossip.local_addr().unwrap()
|
info!("Initializing sigverify, this could take a while...");
|
||||||
);
|
sigverify::init();
|
||||||
info!(
|
info!("Done.");
|
||||||
"local broadcast address: {}",
|
|
||||||
node.sockets.broadcast.local_addr().unwrap()
|
|
||||||
);
|
|
||||||
info!(
|
|
||||||
"local repair address: {}",
|
|
||||||
node.sockets.repair.local_addr().unwrap()
|
|
||||||
);
|
|
||||||
info!(
|
|
||||||
"local retransmit address: {}",
|
|
||||||
node.sockets.retransmit.local_addr().unwrap()
|
|
||||||
);
|
|
||||||
|
|
||||||
info!("creating bank...");
|
info!("creating bank...");
|
||||||
let (
|
let (
|
||||||
|
@ -365,6 +355,26 @@ impl Validator {
|
||||||
self.exit();
|
self.exit();
|
||||||
self.join()
|
self.join()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn print_node_info(node: &Node) {
|
||||||
|
info!("{:?}", node.info);
|
||||||
|
info!(
|
||||||
|
"local gossip address: {}",
|
||||||
|
node.sockets.gossip.local_addr().unwrap()
|
||||||
|
);
|
||||||
|
info!(
|
||||||
|
"local broadcast address: {}",
|
||||||
|
node.sockets.broadcast.local_addr().unwrap()
|
||||||
|
);
|
||||||
|
info!(
|
||||||
|
"local repair address: {}",
|
||||||
|
node.sockets.repair.local_addr().unwrap()
|
||||||
|
);
|
||||||
|
info!(
|
||||||
|
"local retransmit address: {}",
|
||||||
|
node.sockets.retransmit.local_addr().unwrap()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_bank_forks(
|
fn get_bank_forks(
|
||||||
|
|
Loading…
Reference in New Issue