klauspost / cpuid

CPU feature identification for Go
MIT License
1.04k stars 128 forks source link

RFC: How to handle >64 CPU features #55

Closed askervin closed 4 years ago

askervin commented 4 years ago

Hi @klauspost,

I'd like to add AMX CPU features AMXBF16, AMXTILE, AMXINT8. However, we've hit the limit of 64 features in Flags (of type uint64).

So I'm wondering if you'd have a preference over following options, or a better idea:

klauspost commented 4 years ago

Yeah, a v2 has been needed for a while. #28

I think without a full rewrite I would prefer the "feature leaf" option. At least for now what makes it feasible for now. How does that sound?

askervin commented 4 years ago

That's perfectly fine. Thanks for quick answer! Closing.