test-validator: move feature check earlier in startup
This commit is contained in:
parent
ee65ffb3c8
commit
e641f257ef
|
@ -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() {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue