D DeanL macrumors 65816 Original poster May 29, 2014 1,363 1,302 London Nov 25, 2024 #1 Since the CPU and the GPU share the RAM on Apple Silicon, how can I view the amount of RAM currenly used by the GPU vs the CPU? Reactions: rm5
Since the CPU and the GPU share the RAM on Apple Silicon, how can I view the amount of RAM currenly used by the GPU vs the CPU?
Gnattu macrumors 65816 Sep 18, 2020 1,122 1,682 Nov 25, 2024 #2 You need to probe it through IOKit but there is some tools already implemented this to make your life easier. For example, XRG implemented GPU VRAM usage monitoring on Apple Silicon: https://github.com/mikepj/XRG/blob/main/Data Miners/XRGGPUMiner.m You can download their latest release here
You need to probe it through IOKit but there is some tools already implemented this to make your life easier. For example, XRG implemented GPU VRAM usage monitoring on Apple Silicon: https://github.com/mikepj/XRG/blob/main/Data Miners/XRGGPUMiner.m You can download their latest release here
L leman macrumors Core Oct 14, 2008 19,548 19,734 Nov 26, 2024 #3 Gnattu said: You need to probe it through IOKit but there is some tools already implemented this to make your life easier. For example, XRG implemented GPU VRAM usage monitoring on Apple Silicon: https://github.com/mikepj/XRG/blob/main/Data Miners/XRGGPUMiner.m You can download their latest release here Click to expand... That is a convoluted way to get information that can be accessed by a single function call: https://developer.apple.com/documentation/metal/mtldevice/2915745-currentallocatedsize?language=objc Edit: a no, it seems this Metal function only tracks application usage. Way to write informative documentation, Apple. Last edited: Nov 26, 2024
Gnattu said: You need to probe it through IOKit but there is some tools already implemented this to make your life easier. For example, XRG implemented GPU VRAM usage monitoring on Apple Silicon: https://github.com/mikepj/XRG/blob/main/Data Miners/XRGGPUMiner.m You can download their latest release here Click to expand... That is a convoluted way to get information that can be accessed by a single function call: https://developer.apple.com/documentation/metal/mtldevice/2915745-currentallocatedsize?language=objc Edit: a no, it seems this Metal function only tracks application usage. Way to write informative documentation, Apple.