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

Add amdgpu tests to benchmark SDMA, read wavefront states and Trap registers. #1

Open
wants to merge 6 commits into
base: 2019_Q3_RC6_Release
Choose a base branch
from

Conversation

samikhawaja
Copy link

Add following new amdgpu tests,

  • Benchmarking SDMA memcpy from System RAM to VRAM.
  • Benchmarking SDMA memcpy from VRAM to System RAM.
  • Read wavefront states.
  • Read TBA/TMA registers visible from the shader code.

Use the 'SDMA_OPCODE_COPY' to copy a 512MB buffer from System RAM to a
buffer of same size in VRAM. Measure time it takes to complete this
operation and calculate the transfer speed.
Carve out a 'SDMA copy' helper function from 'System RAM to VRAM copy
test' and use it to add a test to benchmark the memory copy from VRAM to
System RAM using SDMA.
Use the amdgpu kernel debugfs to read the wave states. Only support of
AI Family AMD gpus is available.
Use the 'gpr' file in amdgpu kernel debugfs to read the sgpr and vgpr
registers when a compute unit is active.
Dispatch a shader program with a long loop and read wavefront states.
Read the TBA and TMA registers in a shader and write the values into a
buffer. Verify that the values are as set in the kernel mode driver.
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.

1 participant