Skip to content

Commit

Permalink
chore: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zlobintsev committed Nov 4, 2023
1 parent 54c007b commit ca3292f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lact-daemon/src/server/gpu_controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
5 changes: 3 additions & 2 deletions lact-daemon/src/server/vulkan.rs
Original file line number Diff line number Diff line change
@@ -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)?;

Expand Down

0 comments on commit ca3292f

Please sign in to comment.