From 8f0b7e6a76828e27690ece7afc969c819646240b Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Mon, 5 Oct 2015 16:48:50 -0400 Subject: [PATCH] Update HsaMemFlags.ui32.CoarseGrain comment As advised by Paul Blinzer Change-Id: Icabf4acd94866ddbbe53faf48a71e1113f0c76b6 [ROCm/ROCR-Runtime commit: b94ae66c6242a3b096d2c26380c0bbd12c8f5175] --- projects/rocr-runtime/include/hsakmttypes.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/rocr-runtime/include/hsakmttypes.h b/projects/rocr-runtime/include/hsakmttypes.h index fee460fd05..0ffe7663e2 100644 --- a/projects/rocr-runtime/include/hsakmttypes.h +++ b/projects/rocr-runtime/include/hsakmttypes.h @@ -453,9 +453,11 @@ 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 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 CoarseGrain : 1; // default = 0: The memory can be accessed assuming cache + // coherency maintained by link infrastructure and HSA agents. + // 1: memory consistency needs to be enforced at + // synchronization points at dispatch or other software + // enforced synchronization boundaries. unsigned int Reserved : 18; } ui32;