Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,15 @@ NVTOP includes some initial support for Apple using Metal. This is only supporte

**APPLE SUPPORT STATUS**
- Apple support is still being worked on. Some bugs and limitations may apply.
- On unified-memory systems, the memory meter compares global Metal resource allocations with total physical shared
memory. It does not represent dedicated VRAM or overall system memory pressure.
- On Apple Silicon, power draw, GPU clock, temperature and fan speed are read through the private IOReport and AppleSMC
interfaces. These are undocumented and may change between macOS releases; when they are unavailable NVTOP reports the
affected values as unavailable instead of failing. The fan reading is the chassis fan shared by the SoC, not a fan
dedicated to the GPU.
- GPU clock speed maps IOReport performance-state residency onto the GPU DVFS table (`voltage-states9`) exposed by the
`pmgr`/`pmgr-child` device-tree node. The table layout and units differ between chip generations, so this reading is
best-effort and may be unavailable on models NVTOP has not been validated against.

### Ascend

Expand Down
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if(UNIX AND NOT APPLE)
elseif(APPLE)
target_sources(nvtop PRIVATE
get_process_info_mac.c
get_process_info_mac_utils.c
extract_processinfo_mac.c
info_messages_mac.c)
endif()
Expand Down Expand Up @@ -151,10 +152,15 @@ if(V3D_SUPPORT)
endif()

if(APPLE_SUPPORT)
target_sources(nvtop PRIVATE extract_gpuinfo_apple.m)
target_sources(nvtop PRIVATE
extract_gpuinfo_apple.m
extract_gpuinfo_apple_ioreport.c
extract_gpuinfo_apple_smc.c
extract_gpuinfo_apple_utils.m)
target_link_libraries(nvtop PRIVATE
"-framework Metal"
"-framework AppKit"
"-framework CoreFoundation"
"-framework Foundation"
"-framework QuartzCore"
"-framework IOKit")
Expand Down
281 changes: 206 additions & 75 deletions src/extract_gpuinfo_apple.m

Large diffs are not rendered by default.

Loading
Loading