Carter Li
c18bcd316d
GPU (macOS): fix typo
2023-07-02 11:04:38 +08:00
Carter Li
8fd30e814a
GPU (macOS): fix vendor detection for Intel GPU
2023-07-02 11:04:38 +08:00
李通洲
07eddf9772
GPU (Linux): always initialize variables
2023-07-02 10:26:32 +08:00
李通洲
4f19bf9a18
Windows: use ffStrbufInitWS
2023-05-27 23:34:03 +08:00
李通洲
424ca923fc
Vulkan: try fixing #456
2023-05-16 20:53:45 +08:00
李通洲
56477f5ea6
GPU: be more careful to concat strings
2023-03-25 14:19:58 +08:00
李通洲
ca05e2e905
GPU: add option --gpu-force-vulkan
2023-03-25 13:24:28 +08:00
李通洲
a524302ea7
GPU (Windows): use a faster implementation
2023-03-25 13:04:44 +08:00
李通洲
615b2f72ae
GPU (Linux): don't exit if libpci is failed to init
...
* Fixes #433
* Ref https://github.com/pciutils/pciutils/issues/136
2023-03-13 17:46:24 +08:00
李通洲
47cec48a49
GPU (Windows): fix uninited variables
2023-02-25 13:31:36 +08:00
李通洲
6ca4b5391b
Library: refactor FF_LIBRARY_LOAD to use __cleanup__
2023-02-15 14:51:04 +08:00
李通洲
64bacd2572
Vulkan: refactor directory structures
2023-02-14 17:52:58 +08:00
李通洲
662ddac050
Vulkan: detect vmem ( #416 )
2023-02-11 16:05:54 +08:00
李通洲
b90d543afc
GPU (Windows): support vmem total / usage detection #416
...
vmem usage detection is guarded behind `--allow-slow-operations`
because it's really slow sometimes
2023-02-11 16:05:54 +08:00
李通洲
ff170caff6
GPU (Windows): fix duplicated entries.
2023-02-09 09:46:53 +08:00
李通洲
51cc87e0db
GPU (Windows): keep WMI query as a slow operation for accurate results
2023-02-09 00:17:13 +08:00
李通洲
5c46271898
GPU (Windows): fix driver version detection
2023-02-08 21:23:45 +08:00
李通洲
82b10a527b
GPU: support driver version detection
2023-02-07 11:17:46 +08:00
李通洲
edf4837ed6
GPU: refactor vendor detection code
2023-02-06 14:55:57 +08:00
李通洲
d2460d8e85
GPU (Windows): try improving performance
2023-02-05 18:59:20 +08:00
Linus Dierheimer
a063cd4feb
Correctly handle zfs pools
...
#413
2023-02-01 15:56:25 +01:00
李通洲
6f4bdafb0c
Temp: fix severial issues. Fixes #398
...
1. Temp detection has been gated behind of `--*-temp`. Don't make it a slow operation
2. According to [the kernel doc](https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface ), `temp1_input` is millidegree Celsius, which should be divided by 1000
3. There is no `/sys/class/hwmon/hwmon3/device/class` on my laptop, but `/sys/class/hwmon/hwmon3/device/device/class`. Need to confirm with @LinusDierheimer
4. Small code optimizations
2023-01-21 06:18:19 +08:00
李通洲
dcf04aa4fe
GPU: detect type based on vendor
2023-01-13 15:44:52 +08:00
李通洲
67ab7c0779
GPU: support vendor detection
2023-01-13 15:20:30 +08:00
李通洲
53c6a0ec9f
GPU: apply GPU type selection logic to Windows
2023-01-12 22:19:14 +08:00
Linus Dierheimer
1a710e4094
Better GPU type detection nr2
...
#379
2023-01-12 12:56:17 +01:00
Linus Dierheimer
5a90d8b545
Better GPU type detection
...
#379
2023-01-12 12:54:04 +01:00
Linus Dierheimer
670cf6fe90
GPU selection options
...
#379
2023-01-12 11:41:07 +01:00
Linus Dierheimer
2a092de8d8
Detect data dirs at runtime
...
* Respecting the current platform
* Using them where appropiate
2023-01-08 01:41:09 +01:00
李通洲
eeb008f505
Global: replace all ".so" to FF_LIBRARY_EXTENSION
...
... no matter whether the libraries are linux specific or not
2022-12-17 12:22:11 +08:00
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
772dd1e294
GPU: improve performance (Windows)
2022-11-23 15:38:59 +08:00
李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +08:00
李通洲
5e3e2b6137
Windows: fix possible crashes
2022-10-12 00:19:31 +08:00
李通洲
f2540f00a5
Address some feedbacks
2022-10-09 23:23:46 +08:00
李通洲
49921f5ed1
Disk: add support for Windows
...
Also major refactoring of util/windows/wmi
2022-10-09 15:37:14 +08:00
李通洲
0d3d881c24
GPU: add support for Windows
2022-10-06 23:03:19 +08:00
Carter Li
fcbeecb0d5
Temps: test & fix temp detection on Intel ( macOS )
2022-10-01 00:29:51 +08:00
李通洲
100e59fd49
Temps: add options to enable detection ( disabled by default )
2022-09-26 15:29:11 +08:00
李通洲
51c70bc44a
Temps: support macOS
2022-09-26 15:29:11 +08:00
Linus Dierheimer
f5ac85c4e3
Only detect temps if --allow-slow-operations is given
2022-09-24 15:59:36 +02:00
Linus Dierheimer
98c94b01e5
Some more standard comformance
2022-09-23 11:51:16 +02:00
Linus Dierheimer
fea4a9dfd5
Fix build with ancient libpci versions
...
#248
2022-09-21 12:02:14 +02:00
李通洲
482e5a5eff
util/cf_helpers: rename; return error info if failed
2022-09-20 17:50:14 +08:00
Linus Dierheimer
f0cee064bd
Basic BSD support
2022-09-19 23:16:43 +02:00
Linus Dierheimer
34b273186a
FF_LIBRARY_LOAD: don't implicit create pointer
2022-09-19 18:00:19 +02:00
Linus Dierheimer
55f28ae8ff
Fix build with older libpci versions the second
2022-09-19 16:58:25 +02:00
Linus Dierheimer
fb3eb9666e
Fix build with older libpci versions
2022-09-19 16:43:43 +02:00
Linus Dierheimer
d29d99bd6d
Use pci_fill_info when possible
2022-09-19 15:54:27 +02:00