Dr-Noob / cpufetch

Simple yet fancy CPU architecture fetching tool
GNU General Public License v2.0
1.83k stars 100 forks source link

Mac Mini M2 Pro - `Found invalid cpu_subfamily: 0x00000004` #189

Closed MrVeink closed 10 months ago

MrVeink commented 11 months ago

Using a Mac Mini with an M2 Pro CPU with 10 CPU cores and 16 GPU cores. OS version is Ventura 13.4.

% cpufetch --verbose

[ERROR]: Found invalid cpu_subfamily: 0x00000004
[VERSION]: cpufetch v1.04 (macOS ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
[WARNING]: SoC detection failed using cpu_subfamily

                                                            SoC:                 Unknown
                                                            Technology:          Unknown
                                                            CPU 1:
                                                              Microarchitecture: Blizzard
                                                              Max Frequency:     2.800 GHz
                                                              Cores:             4 cores
                                                              Features:          NEON,SHA1,SHA2,AES,CRC32
                                                            CPU 2:
                                                              Microarchitecture: Avalanche
                                                              Max Frequency:     3.500 GHz
                                                              Cores:             4 cores
                                                              Features:          NEON,SHA1,SHA2,AES,CRC32
                                                            Peak Performance:    100.80 GFLOP/s

% cpufetch --debug

[ERROR]: Found invalid cpu_subfamily: 0x00000004
[VERSION]: cpufetch v1.04 (macOS ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
cpufetch v1.04 (macOS ARM build)
MrVeink commented 11 months ago

Just noticed that compiling from source has the latest commit. Still getting an error, but a different one.

./cpufetch --verbose

[ERROR]: fill_soc: soc->soc_vendor == SOC_VENDOR_UNKOWN
[VERSION]: cpufetch v1.04-4-g3607 (macOS ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
[WARNING]: SoC detection failed using cpu_subfamily

                                                            SoC:                 Unknown
                                                            Technology:          Unknown
                                                            CPU 1:
                                                              Microarchitecture: Blizzard
                                                              Max Frequency:     2.800 GHz
                                                              Cores:             6 cores
                                                              Features:          NEON,SHA1,SHA2,AES,CRC32
                                                            CPU 2:
                                                              Microarchitecture: Avalanche
                                                              Max Frequency:     3.500 GHz
                                                              Cores:             4 cores
                                                              Features:          NEON,SHA1,SHA2,AES,CRC32
                                                            Peak Performance:    716.80 GFLOP/s

./cpufetch --debug

[ERROR]: fill_soc: soc->soc_vendor == SOC_VENDOR_UNKOWN
[VERSION]: cpufetch v1.04-4-g3607 (macOS ARM build)
Please, create a new issue with this error message, your smartphone/computer model, the output of 'cpufetch --verbose' and 'cpufetch --debug' on https://github.com/Dr-Noob/cpufetch/issues
cpufetch v1.04-4-g3607 (macOS ARM build)
Dr-Noob commented 10 months ago

Thanks for reporting! Should be fixed in 6a5b4c3. Can you confirm in your machine?

MrVeink commented 10 months ago

% cpufetch


                   ."c.         
                 ,xNMM.         
                .lMM"           SoC:                 Apple M2 Pro
                MM*             Technology:          5nm
     .;loddo;:.   olloddol;.    CPU 1:
   cKMMMMMMMMMMNWMMMMMMMMMMM0:    Microarchitecture: Blizzard
 .KMMMMMMMMMMMMMMMMMMMMMMMW*      Max Frequency:     2.800 GHz
 XMMMMMMMMMMMMMMMMMMMMMMMX.       Cores:             6 cores
;MMMMMMMMMMMMMMMMMMMMMMMM:        Features:          NEON,SHA1,SHA2,AES,CRC32
:MMMMMMMMMMMMMMMMMMMMMMMM:      CPU 2:
.MMMMMMMMMMMMMMMMMMMMMMMMX.       Microarchitecture: Avalanche
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.     Max Frequency:     3.500 GHz
 'XMMMMMMMMMMMMMMMMMMMMMMMMMMk    Cores:             4 cores
  'XMMMMMMMMMMMMMMMMMMMMMMMMK.    Features:          NEON,SHA1,SHA2,AES,CRC32
    kMMMMMMMMMMMMMMMMMMMMMMd    Peak Performance:    716.80 GFLOP/s
     'KMMMMMMMWXXWMMMMMMMk.     
       "cooc"*    "*coo'"       

Seems to work great. Thanks!!