How to identify GraceHopper and GraceGrace nodes?

All,

I’m not sure where to ask about this so I’ll try here. Namely, I maintain code that uses:

## Print out the processor description
cmake_host_system_information(RESULT proc_description QUERY PROCESSOR_DESCRIPTION)
message(STATUS "Processor description: ${proc_description}")

to figure out the processor and then set flags accordingly if possible.

However, recently I got access to a GraceHopper and GraceGrace node and both return (with CMake 3.30.1):

-- Processor description: 1 core 0 MHz Unknown family

I mean, new hardware and all not unexpected, though usually CMake does pretty well, so I’m guessing there isn’t some “table” with known hardware in the source.

So a two-part question:

  1. How can I help the community by getting GH and GG identification into CMake?
  2. What could be a secondary way to identify this outside of “pure” CMake?

Note: While not surprised it doesn’t know the processor type, I am surprised it doesn’t figure out how many cores there are on at least the CPU side. grep -c processor /proc/cpuinfo does return 72 and 144.

I believe there is the sysctl that may be used to get information rather than reading /proc files. Does sysctl -a report the correct information anywhere?

Ahh. That might be it. sysctl -a seems to be quite…sparse. I also looked at /proc/cpuinfo and it sees:

processor	: 0
BogoMIPS	: 2000.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd4f
CPU revision	: 0

Pretty sparse too.

I suppose CMake is just showing that Linux itself doesn’t know much.

I guess for now:

-- Processor description: 1 core 0 MHz Unknown family

is as good as anything. At least on the machines I run on, it does uniquely describe the system!