Search code examples
machine-learningpytorchmetal

Detect Apple silicon GPU core count


Similar to this question, I am interested in detecting the exact GPU inside a Mac equipped with Apple silicon.

I am interested in knowing the exact GPU core count.

sysctl -a | grep gpu

or

sysctl -a | grep core

does not seem to provide anything useful.


Solution

  • To detect GPU core count on Apple Silicon architecture you can use this command:

    system_profiler SPDisplaysDataType