Exclude cpuid.h from Mac non x86 arch#7166
Conversation
snnn
left a comment
There was a problem hiding this comment.
You may try https://cmake.org/cmake/help/latest/module/CheckIncludeFile.html . It is more portable and without the need for tweaking the macro for every platform and every compiler.
|
BTW, are you interested in doing an investigation on hwloc? For example, if we bring it in, how much it would increase our binary size. hwloc is the standard way of fetching such information on Unix-like operating systems. |
|
@RandySheriffH I see you blocked out the use of |
Or maybe https://github.com/pytorch/cpuinfo |
Will take a delve here. :) |
Exclude cpuid.h from Mac system when it is running on non x86 arch to address issue #7160.