rust-cpuid icon indicating copy to clipboard operation
rust-cpuid copied to clipboard

Intel SDE for testing

Open mert-kurttutan opened this issue 1 year ago • 3 comments

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.

mert-kurttutan avatar Aug 08 '24 04:08 mert-kurttutan

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

gz avatar Aug 08 '24 04:08 gz

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?

gz avatar Aug 08 '24 04:08 gz

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.

mert-kurttutan avatar Aug 08 '24 11:08 mert-kurttutan