MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / init

Method init

crates/rustc_codegen_nvvm/src/lib.rs:89–98  ·  view source on GitHub ↗
(&self, sess: &Session)

Source from the content-addressed store, hash-verified

87
88impl CodegenBackend for NvvmCodegenBackend {
89 fn init(&self, sess: &Session) {
90 let filter = tracing_subscriber::EnvFilter::from_env("NVVM_LOG");
91 let subscriber = tracing_subscriber::fmt()
92 .with_env_filter(filter)
93 .compact()
94 .finish();
95
96 tracing::subscriber::set_global_default(subscriber).expect("no default subscriber");
97 init::init(sess);
98 }
99 fn metadata_loader(&self) -> Box<MetadataLoaderDyn> {
100 Box::new(link::NvvmMetadataLoader)
101 }

Callers

nothing calls this directly

Calls 2

initFunction · 0.70
expectMethod · 0.45

Tested by

no test coverage detected