Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update uarch detection for Intel processors #184

Merged
merged 2 commits into from
Oct 29, 2021

Conversation

toor1245
Copy link
Contributor

@toor1245 toor1245 commented Oct 23, 2021

Added detection:

  • 80486
  • P5
  • Lakemont
  • Nenburst
  • Alder Lake
  • Rocket Lake
  • Knights Mill
  • Knights Landing
  • Knights Ferry
  • Knights Corner

@toor1245 toor1245 force-pushed the update-detection-intel-cpu branch 2 times, most recently from 720c0e0 to 547d168 Compare October 23, 2021 13:35
@toor1245
Copy link
Contributor Author

@gchatelet, @Mizux, please review

@@ -20,6 +20,7 @@

#include "internal/bit_utils.h"
#include "internal/cpuid_x86.h"
#include "internal/string_view.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added this line as CpuFeaturesStringView_CopyString doesn't work on Windows

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase? I've fixed it in #187

@@ -1700,7 +1747,7 @@ void FillX86BrandString(char brand_string[49]) {
};
const size_t leaves_size = sizeof(leaves);
#if __STDC_VERSION__ >= 201112L
_Static_assert(leaves_size == 48, "Leaves must be packed");
_Static_assert(sizeof(leaves) == 48, "Leaves must be packed");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed to sizeof(leaves) due to #185

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@gchatelet
Copy link
Collaborator

Thx for the patch! Can you rebase?

@toor1245
Copy link
Contributor Author

Thx for the patch! Can you rebase?

yes, sure

@toor1245 toor1245 force-pushed the update-detection-intel-cpu branch 2 times, most recently from 5ac4bd0 to 390baec Compare October 25, 2021 07:56
@toor1245
Copy link
Contributor Author

@gchatelet, updated

@gchatelet
Copy link
Collaborator

Do you mind if we push #194 first and rebase this patch afterward?

@toor1245
Copy link
Contributor Author

Do you mind if we push #194 first and rebase this patch afterward?

yes, don't mind

@toor1245 toor1245 marked this pull request as draft October 28, 2021 11:29
@gchatelet
Copy link
Collaborator

You can to import your changes in src/impl_x86__base_implementation.inl now

@toor1245 toor1245 force-pushed the update-detection-intel-cpu branch 2 times, most recently from 053f3d1 to d5b5629 Compare October 29, 2021 00:00
@toor1245 toor1245 marked this pull request as ready for review October 29, 2021 00:32
@toor1245
Copy link
Contributor Author

@gchatelet, updated

@gchatelet gchatelet merged commit 5695cc4 into google:master Oct 29, 2021
@gchatelet
Copy link
Collaborator

Thx for the PR!

@gchatelet gchatelet added this to the v0.7.0 milestone Mar 8, 2022
@gchatelet gchatelet added the enhancement New feature or request label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants