mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
chore: add more logging
This commit is contained in:
@@ -191,6 +191,7 @@ impl GpuController {
|
||||
|
||||
#[cfg(feature = "libdrm_amdgpu_sys")]
|
||||
fn get_drm_info(&self) -> Option<DrmInfo> {
|
||||
trace!("Reading DRM info");
|
||||
let drm_handle = self.drm_handle.as_ref();
|
||||
|
||||
let drm_memory_info =
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::fork::run_forked;
|
||||
use lact_schema::{VulkanDriverInfo, VulkanInfo};
|
||||
use std::borrow::Cow;
|
||||
use tracing::trace;
|
||||
use vulkano::{
|
||||
instance::{Instance, InstanceCreateInfo},
|
||||
VulkanLibrary,
|
||||
};
|
||||
|
||||
pub fn get_vulkan_info<'a>(vendor_id: &'a str, device_id: &'a str) -> anyhow::Result<VulkanInfo> {
|
||||
trace!("Reading vulkan info");
|
||||
let vendor_id = u32::from_str_radix(vendor_id, 16)?;
|
||||
let device_id = u32::from_str_radix(device_id, 16)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user