gz / rust-cpuid

cpuid library in rust.
https://docs.rs/raw-cpuid/
MIT License
151 stars 45 forks source link

Intel SDE for testing #184

Open mert-kurttutan opened 1 month ago

mert-kurttutan commented 1 month ago

I might be setting up Intel sde for one of my projects.

I think I can also squeeze in some work on testing with sde for cpuid crate as well. This should be also good for testing future cpu features

Let me know if you are open to this.

gz commented 1 month ago

that would be nice if we can run it in CI, thanks

gz commented 1 month ago

note that we already can mock the cpuid instruction in tests and the library by swapping it out with a custom fn. What do you think SDE can do here in addition?

mert-kurttutan commented 1 month ago

For already-present cpu features, it just makes it so that we don't need to implement it manually, e.g. it has the option to pick uarch, cpu features etc. So, once completed, it should be less error-prone and more automated to test these

Another advantage is that it also implements future cpu features. So, instead of looking up Intel's manual for future features, we can just use intel sde.