From f2f45cc0e4bb0789121fd70b4fdcf3b71d8da3b0 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Tue, 29 Sep 2015 11:35:26 -0400 Subject: [PATCH] Add CoarseGrain memory flag Change-Id: If8ac0339ae8c809c6e6a4f56592a4061d110ea94 --- include/hsakmttypes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/hsakmttypes.h b/include/hsakmttypes.h index 25e7ad0832..fee460fd05 100644 --- a/include/hsakmttypes.h +++ b/include/hsakmttypes.h @@ -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;