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

Added a Generate CPU Table script #10

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

greener-hayden
Copy link
Contributor

@greener-hayden greener-hayden commented Dec 8, 2023

This code generated a CPU table specifically designed for my 13th gen Intel CPU. While I cannot guarantee its compatibility with other setups I believe that the underlying principles and overall concept should work on different systems as well. Hope this helps/gives ideas!

Output for my 13700k:

:: Affinity table for 13th Gen Intel(R) Core(TM) i7-13700K with Hyperthreading
:: Thread # = Value = BitMask
:: P-Core 0 = 1 = 00000001
:: P-Core 1 = 2 = 00000010
:: P-Core 2 = 4 = 00000100
:: P-Core 3 = 8 = 00001000
:: P-Core 4 = 16 = 00010000
:: P-Core 5 = 32 = 00100000
:: P-Core 6 = 64 = 01000000
:: P-Core 7 = 128 = 10000000
:: P-Core 8T = 256 = 1 00000000
:: P-Core 9T = 512 = 10 00000000
:: P-Core 10T = 1024 = 100 00000000
:: P-Core 11T = 2048 = 1000 00000000
:: P-Core 12T = 4096 = 10000 00000000
:: P-Core 13T = 8192 = 100000 00000000
:: P-Core 14T = 16384 = 1000000 00000000
:: P-Core 15T = 32768 = 10000000 00000000
:: E-Core 16 = 65536 = 100000000 00000000
:: E-Core 17 = 131072 = 1000000000 00000000
:: E-Core 18 = 262144 = 10000000000 00000000
:: E-Core 19 = 524288 = 100000000000 00000000
:: E-Core 20 = 1048576 = 1000000000000 00000000
:: E-Core 21 = 2097152 = 10000000000000 00000000
:: E-Core 22 = 4194304 = 100000000000000 00000000
:: E-Core 23 = 8388608 = 1000000000000000 00000000

This code generated a CPU table specifically designed for my 13th gen Intel CPU. While I cannot guarantee its compatibility with other setups I believe that the underlying principles and overall concept should work on different systems as well. Hope this helps/gives ideas!

":: Affinity table for 13th Gen Intel(R) Core(TM) i7-13700K with Hyperthreading support
:: Thread #   = Value   = BitMask
:: P-Core 0   = 1       = 00000001
:: P-Core 1   = 2       = 00000010
:: P-Core 2   = 4       = 00000100
:: P-Core 3   = 8       = 00001000
:: P-Core 4   = 16      = 00010000
:: P-Core 5   = 32      = 00100000
:: P-Core 6   = 64      = 01000000
:: P-Core 7   = 128     = 10000000
:: P-Core 8T  = 256     = 1 00000000
:: P-Core 9T  = 512     = 10 00000000
:: P-Core 10T = 1024    = 100 00000000
:: P-Core 11T = 2048    = 1000 00000000
:: P-Core 12T = 4096    = 10000 00000000
:: P-Core 13T = 8192    = 100000 00000000
:: P-Core 14T = 16384   = 1000000 00000000
:: P-Core 15T = 32768   = 10000000 00000000
:: E-Core 16  = 65536   = 100000000 00000000
:: E-Core 17  = 131072  = 1000000000 00000000
:: E-Core 18  = 262144  = 10000000000 00000000
:: E-Core 19  = 524288  = 100000000000 00000000
:: E-Core 20  = 1048576 = 1000000000000 00000000
:: E-Core 21  = 2097152 = 10000000000000 00000000
:: E-Core 22  = 4194304 = 100000000000000 00000000
:: E-Core 23  = 8388608 = 1000000000000000 00000000"
@Gobidev Gobidev merged commit 4c7c65e into Gobidev:main Dec 8, 2023
@Gobidev
Copy link
Owner

Gobidev commented Dec 8, 2023

Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants