Skip to content

Update uarch detection for Intel processors#184

Merged
gchatelet merged 2 commits into
google:masterfrom
toor1245:update-detection-intel-cpu
Oct 29, 2021
Merged

Update uarch detection for Intel processors#184
gchatelet merged 2 commits into
google:masterfrom
toor1245:update-detection-intel-cpu

Conversation

@toor1245
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@gchatelet, @Mizux, please review

Comment thread src/cpuinfo_x86.c Outdated

#include "internal/bit_utils.h"
#include "internal/cpuid_x86.h"
#include "internal/string_view.h"
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/cpuinfo_x86.c Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

Thx for the patch! Can you rebase?

@toor1245
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@gchatelet, updated

@gchatelet
Copy link
Copy Markdown
Collaborator

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

@toor1245
Copy link
Copy Markdown
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
Copy Markdown
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 toor1245 force-pushed the update-detection-intel-cpu branch from d5b5629 to 372e822 Compare October 29, 2021 00:39
@toor1245
Copy link
Copy Markdown
Contributor Author

@gchatelet, updated

@gchatelet gchatelet merged commit 5695cc4 into google:master Oct 29, 2021
@gchatelet
Copy link
Copy Markdown
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.

2 participants