amd-gcn

Why AMD GCN uses non-zero NULL?

烂漫一生 提交于 2019-12-12 03:42:45
问题 This commit says: In amdgcn target, null pointers in global, constant, and generic address space take value 0 but null pointers in private and local address space take value -1. How do they use those two different values of NULL? 回答1: As to why : I don't know this for a fact, but local/private address space pointers are almost certainly just implemented as offsets/indices in a flat physical register file/memory area. There's no virtual memory-like address remapping, just a big array. You