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.

You can use ioreg like this:
 ioreg -l | grep gpu-core-count

You can also look up an object with class that's named something like AGXAcceleratorG13X and see all of its properties, gpu-core-count will also be there.
