From fce6ba052e88f8e51a9841a56d390943132e4412 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Fri, 10 Dec 2021 16:19:30 -0600 Subject: [PATCH] Correct documentation typo. ROCM_VISIBLE_DEVICES was used where ROCR_VISIBLE_DEVICES was intended. Change-Id: I644a546f3c9dd0b50898ef8a21dbb8f5c3a36926 --- runtime/hsa-runtime/core/util/flag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/hsa-runtime/core/util/flag.cpp b/runtime/hsa-runtime/core/util/flag.cpp index f45ea9992d..f772ea9827 100644 --- a/runtime/hsa-runtime/core/util/flag.cpp +++ b/runtime/hsa-runtime/core/util/flag.cpp @@ -111,7 +111,7 @@ CU_list = 0x[0-F]* | ID_list ex. 0x337F OR 0,2-4,7 CU_Set = GPU_list : CU_list ex. 0,2-4,7:0-15,32-47 OR 0,2-4,7:0x337F HSA_CU_MASK = CU_Set [; CU_Set]* ex. 0,2-4,7:0-15,32-47; 3-9:0x337F -GPU indexes are taken post ROCM_VISIBLE_DEVICES reordering. +GPU indexes are taken post ROCR_VISIBLE_DEVICES reordering. Listed or bit set CUs will be enabled at queue creation on the associated GPU. All other CUs on the associated GPUs will be disabled. CU masks of unlisted GPUs are not restricted. @@ -120,7 +120,7 @@ Repeating a GPU or CU ID is a syntax error. Parsing stops at the first CU_Set that has a syntax error, that set and all following sets are ignored. Specifying a mask with no usable CUs (CU_list is 0x0) is a syntax error. -Users should use ROCM_VISIBLE_DEVICES if they want to exclude use of a +Users should use ROCR_VISIBLE_DEVICES if they want to exclude use of a particular GPU. */ void Flag::parse_masks(std::string& var, uint32_t maxGpu, uint32_t maxCU) {