Add HSA_CU_MASK

New environment variable HSA_CU_MASK allows users to
specify a cu mask to every queue allocated from any
GPU.  hsa_amd_queue_cu_set_mask is restricted from
escaping this mask.

A new API hsa_amd_queue_cu_get_mask is added to query
the current cu mask.

Change-Id: I846c03a5faaca9b95067c31db84b59cc9fce2f03


[ROCm/ROCR-Runtime commit: 4455250be1]
Este commit está contenido en:
Sean Keely
2021-06-29 18:03:05 -05:00
padre c7606d1dfc
commit 4c6ea88cf5
Se han modificado 19 ficheros con 430 adiciones y 30 borrados
@@ -186,6 +186,7 @@ struct AmdExtTable {
decltype(hsa_amd_svm_attributes_set)* hsa_amd_svm_attributes_set_fn;
decltype(hsa_amd_svm_attributes_get)* hsa_amd_svm_attributes_get_fn;
decltype(hsa_amd_svm_prefetch_async)* hsa_amd_svm_prefetch_async_fn;
decltype(hsa_amd_queue_cu_get_mask)* hsa_amd_queue_cu_get_mask_fn;
};
// Table to export HSA Core Runtime Apis