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.
NOTICE: This is best used with DMD and LDC. Will crash on GDC -O1.
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.
NOTICE: This is best used with DMD and LDC. Will crash on GDC -O1.