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

AVX-512 debugger support: view registers #87854

Open
Tracked by #77034 ...
BruceForstall opened this issue Jun 21, 2023 · 3 comments
Open
Tracked by #77034 ...

AVX-512 debugger support: view registers #87854

BruceForstall opened this issue Jun 21, 2023 · 3 comments
Labels
area-Diagnostics-coreclr avx512 Related to the AVX-512 architecture
Milestone

Comments

@BruceForstall
Copy link
Member

BruceForstall commented Jun 21, 2023

AVX-512 introduces new zmm and k registers. The Visual Studio Registers window can show these if you right-click in the window and choose "AVX-512". However, the values are "grayed out" when debugging a managed app, and they do not show actual values (they show zeros).

The Registers window also shows ymm registers if you right-click and choose "AVX". These are also not available when debugging a managed app.

It appears that Vector512 variables do show the correct values.

To add support for the Registers window:

  1. Ensure the AVX/AVX-512 registers are defined in the CorDebugRegister enum
  2. Review ICorDebugRegisterSet2 to ensure the API would work with AVX/AVX-512
  3. Add the appropriate implementation to CordbRegisterSet::GetRegistersAvailable, CordbRegisterSet::GetRegisters, more.
@BruceForstall BruceForstall added area-Diagnostics-coreclr avx512 Related to the AVX-512 architecture labels Jun 21, 2023
@BruceForstall BruceForstall added this to the Future milestone Jun 21, 2023
@ghost
Copy link

ghost commented Jun 21, 2023

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

AVX-512 introduces new zmm and k registers. The Visual Studio Registers window can show these if you right-click in the window and choose "AVX-512". However, the values are "grayed out" when debugging a managed app, and they do not show actual values (they show zeros).

The Registers window also shows ymm registers if you right-click and choose "AVX". These are also not available when debugging a managed app.

It appears that Vector512 variables do show the correct values.

Author: BruceForstall
Assignees: -
Labels:

area-Diagnostics-coreclr, arch-avx512

Milestone: Future

@tommcdon
Copy link
Member

cc @caslan

@BruceForstall
Copy link
Member Author

cc @dotnet/avx512-contrib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Diagnostics-coreclr avx512 Related to the AVX-512 architecture
Projects
None yet
Development

No branches or pull requests

2 participants