This was initially used internally, so it's pretty unfriendly.
The best way to use this module would be:
CPUINFOinfo; // Important to let the struct init to zero!getLeaves(info); // Get maximum CPUID leaves (mandatory step before info)getVendor(info); // Get vendor string (mandatory step before info)getInfo(info); // Fill CPUINFO structure (optional)
Then checking the corresponding field:
if (info.ext.amx_xfd) {
// Intel AMX is available
} else {
// Feature unavailable
}
See the CPUINFO structure for available fields.
For more information, it's encouraged to consult the technical manual.
x86 CPU Identification tool
This was initially used internally, so it's pretty unfriendly.
The best way to use this module would be:
Then checking the corresponding field:
See the CPUINFO structure for available fields.
For more information, it's encouraged to consult the technical manual.