This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Insert mem_viol check loop around GWS pre-GFX9
ClosedPublic

Authored by arsenm on Jun 17 2019, 4:47 PM.

Details

Reviewers
rampitec
b-sumner
Summary

It is necessary to emit this loop around GWS operations in case the
wave is preempted pre-GFX9.

Diff Detail

Event Timeline

arsenm created this revision.Jun 17 2019, 4:47 PM

Two questions:

  1. Should that only be enabled if xnack enabled? Was it even ever on before gfx9, I think no?
  2. Should we support it on ASICs older than gfx9? This may be more a question to Brian.

Two questions:

  1. Should that only be enabled if xnack enabled? Was it even ever on before gfx9, I think no?

I don't think this is related to xnack, but there's a lot of guesswork since the documentation is mostly non-existent

  1. Should we support it on ASICs older than gfx9? This may be more a question to Brian.

This is the compiler support for it, I don't know if the driver has more work to support it but I would doubt it

rampitec accepted this revision.Jun 17 2019, 5:06 PM

Tentative LGTM for the code itself. Please check with Brian for feasibility.

This revision is now accepted and ready to land.Jun 17 2019, 5:06 PM

Tentative LGTM for the code itself. Please check with Brian for feasibility.

The backend can still support it even if the official driver does not advertise it

arsenm closed this revision.Jun 20 2019, 1:51 PM

r363979