Add CoarseGrain memory flag

Change-Id: If8ac0339ae8c809c6e6a4f56592a4061d110ea94
This commit is contained in:
Felix Kuehling
2015-09-29 11:35:26 -04:00
parent 2d63ee7b8f
commit f2f45cc0e4
+4 -1
View File
@@ -453,7 +453,10 @@ typedef struct _HsaMemFlags
unsigned int ExecuteAccess: 1; // default = 0: Identifies if memory is primarily used for data or accessed
// for executable code (e.g. queue memory) by the host CPU or the device.
// Influences the page attribute setting within the allocation
unsigned int Reserved : 19;
unsigned int CoarseGrain : 1; // default = 0: Memory is assigned explicitly to one agent at a time and does
// not need to be accessed in a cache-coherent way. Memory consistency needs
// to be enforced at synchronization points at dispatch boundaries.
unsigned int Reserved : 18;
} ui32;
HSAuint32 Value;