This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] set read_only access qualifier for pointers
ClosedPublic

Authored by rampitec on Apr 14 2017, 11:46 AM.

Details

Summary

If a kernel's pointer argument is known to be readonly
set access qualifier accordingly. This allows RT not to
flush caches before dispatches.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Apr 14 2017, 11:46 AM

I think this helps the runtime avoid buffer transfers (since it knows the buffer has not been changed by the kernel), rather than cache flushes.

I think this helps the runtime avoid buffer transfers (since it knows the buffer has not been changed by the kernel), rather than cache flushes.

I though so too, however Jeff says it is only flushes.

This revision is now accepted and ready to land.Apr 14 2017, 12:22 PM
This revision was automatically updated to reflect the committed changes.