test-validator: move feature check earlier in startup

This commit is contained in:
Trent Nelson 2021-07-27 22:23:45 -06:00 committed by mergify[bot]
parent ee65ffb3c8
commit e641f257ef
2 changed files with 3 additions and 1 deletions

View File

@ -1457,7 +1457,7 @@ fn is_rosetta_emulated() -> bool {
} }
} }
fn report_target_features() { pub fn report_target_features() {
warn!( warn!(
"CUDA is {}abled", "CUDA is {}abled",
if solana_perf::perf_libs::api().is_some() { if solana_perf::perf_libs::api().is_some() {

View File

@ -353,6 +353,8 @@ fn main() {
}; };
let _logger_thread = redirect_stderr_to_file(logfile); let _logger_thread = redirect_stderr_to_file(logfile);
solana_core::validator::report_target_features();
let socket_addr_space = SocketAddrSpace::new(matches.is_present("allow_private_addr")); let socket_addr_space = SocketAddrSpace::new(matches.is_present("allow_private_addr"));
let cli_config = if let Some(config_file) = matches.value_of("config_file") { let cli_config = if let Some(config_file) = matches.value_of("config_file") {
solana_cli_config::Config::load(config_file).unwrap_or_default() solana_cli_config::Config::load(config_file).unwrap_or_default()