This is an archive of the discontinued LLVM Phabricator instance.

[mlir][AMDGPU] Explicitly truncate memory addresses in buffer ops
ClosedPublic

Authored by krzysz00 on Aug 2 2022, 1:31 PM.

Details

Summary

As a percaution, truncate memory addresses passed to kernels to 48 bits,
since bits 48-63 of the buffer descriptor are used for the stride field
and, on gfx10, to control swizzling.

Diff Detail

Event Timeline

krzysz00 created this revision.Aug 2 2022, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 1:31 PM
krzysz00 requested review of this revision.Aug 2 2022, 1:31 PM

Could you add a test?

krzysz00 updated this revision to Diff 450021.Aug 4 2022, 9:40 AM

Added test

This revision is now accepted and ready to land.Aug 4 2022, 11:02 AM