mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 20:22:38 +01:00
Compare commits
2 Commits
4655debf53
...
dba83c5990
| Author | SHA1 | Date | |
|---|---|---|---|
|
dba83c5990
|
|||
|
aac23e3f5f
|
@@ -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();
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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![];
|
||||||
Reference in New Issue
Block a user