1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 18:12:39 +01:00

Compare commits

..

2 Commits

2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff -dNur a/src/sys_info_v2/gatherer/src/platform/linux/gpu_info/mod.rs b/src/sys_info_v2/gatherer/src/platform/linux/gpu_info/mod.rs
--- a/src/sys_info_v2/gatherer/src/platform/linux/gpu_info/mod.rs 2023-10-13 10:35:44.000000000 +0200
+++ b/src/sys_info_v2/gatherer/src/platform/linux/gpu_info/mod.rs 2023-10-13 21:52:45.972806232 +0200
@@ -28,6 +28,7 @@
lazy_static! {
static ref INIT_NVTOP: () = unsafe {
nvtop::init_extract_gpuinfo_amdgpu();
+ nvtop::init_extract_gpuinfo_intel();
nvtop::init_extract_gpuinfo_nvidia();
};
}

View File

@@ -0,0 +1,14 @@
diff -dNur a/src/sys_info_v2/gatherer/build/build.rs b/src/sys_info_v2/gatherer/build/build.rs
--- a/src/sys_info_v2/gatherer/build/build.rs 2023-10-13 10:35:44.000000000 +0200
+++ b/src/sys_info_v2/gatherer/build/build.rs 2023-10-13 21:30:34.353998585 +0200
@@ -35,9 +35,7 @@
fn prepare_third_party_sources() -> Result<Vec<std::path::PathBuf>, Box<dyn std::error::Error>> {
let third_party_path =
std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR")? + "/3rdparty");
- let mut out_dir = std::env::var("OUT_DIR")?;
- out_dir.push_str("/../../native");
- std::fs::create_dir_all(&out_dir)?;
+ let out_dir = std::env::var("WORKDIR")?;
let out_dir = std::path::PathBuf::from(out_dir).canonicalize()?;
let mut result = vec![];