From bbb90bdfc92246ed25ce04b3a51f49d05f720cd3 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Tue, 4 Jun 2019 22:17:53 -0500 Subject: [PATCH] Fix description of HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL. Description was inconsistent with itself and code. Existing behavior returns HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL == true for system memory pools only and system memory pools do require hsa_amd_agents_allow_access. Change-Id: I64b287bff9fdb21688aa169296e410edf1b209b5 --- runtime/hsa-runtime/inc/hsa_ext_amd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/hsa-runtime/inc/hsa_ext_amd.h b/runtime/hsa-runtime/inc/hsa_ext_amd.h index 63664cfb83..add80e5270 100644 --- a/runtime/hsa-runtime/inc/hsa_ext_amd.h +++ b/runtime/hsa-runtime/inc/hsa_ext_amd.h @@ -714,9 +714,9 @@ typedef enum { HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_ALIGNMENT = 7, /** * This memory_pool can be made directly accessible by all the agents in the - * system (::hsa_amd_agent_memory_pool_get_info returns - * ::HSA_AMD_MEMORY_POOL_ACCESS_ALLOWED_BY_DEFAULT for all agents). The type of - * this attribute is bool. + * system (::hsa_amd_agent_memory_pool_get_info does not return + * ::HSA_AMD_MEMORY_POOL_ACCESS_NEVER_ALLOWED for any agent). The type of this + * attribute is bool. */ HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL = 15, } hsa_amd_memory_pool_info_t;