We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cpuid.x86_any
version (x86)
1 parent d4b7747 commit 96090b2Copy full SHA for 96090b2
packages/mcl/src/src/mcl/commands/host_info.d
@@ -301,10 +301,13 @@ struct ProcessorInfo
301
ProcessorInfo getProcessorInfo()
302
{
303
ProcessorInfo r;
304
- r.vendor = cpuid.x86_any.vendor;
305
- char[48] modelCharArr;
306
- cpuid.x86_any.brand(modelCharArr);
307
- r.model = modelCharArr.idup[0 .. (strlen(modelCharArr.ptr) - 1)];
+ version (x86)
+ {
+ r.vendor = cpuid.x86_any.vendor;
+ char[48] modelCharArr;
308
+ cpuid.x86_any.brand(modelCharArr);
309
+ r.model = modelCharArr.idup[0 .. (strlen(modelCharArr.ptr) - 1)];
310
+ }
311
r.cpus = cpuid.unified.cpus();
312
r.cores = [r.cpus * cpuid.unified.cores()];
313
r.threads = [cpuid.unified.threads()];
0 commit comments