Commit 838f4927 authored by zhugzh1's avatar zhugzh1
Browse files

mod bug98502

parent 1337102e
...@@ -100,7 +100,7 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) { ...@@ -100,7 +100,7 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) {
ErrorCheck(status); ErrorCheck(status);
bool is_kernarg = (HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_KERNARG_INIT & flag); bool is_kernarg = (HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_KERNARG_INIT & flag);
bool is_fine_grained = (HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_FINE_GRAINED & flag); bool is_fine_grained = (HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_FINE_GRAINED & flag);
bool is_coarse_grained =(HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_COARSE_GRAINED & flag);
// Update the pool handle for system memory if kernarg is true // Update the pool handle for system memory if kernarg is true
if (is_kernarg) { if (is_kernarg) {
asyncDrvr->sys_pool_ = pool; asyncDrvr->sys_pool_ = pool;
...@@ -134,7 +134,7 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) { ...@@ -134,7 +134,7 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) {
return HSA_STATUS_SUCCESS; return HSA_STATUS_SUCCESS;
} }
} else { } else {
if (is_fine_grained == true) { if (!is_coarse_grained) {
return HSA_STATUS_SUCCESS; return HSA_STATUS_SUCCESS;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment