rocminfo: early detect absence of unsupported GPU in wsl (#1317)
Add an early check in WSL to detect when no supported GPU is available. otherwise rocm_agent_enumerator will keep retrying rocminfo for one minute, causing unnecessary delay. Signed-off-by: Flora Cui <flora.cui@amd.com> Co-authored-by: harkgill-amd <harkgill@amd.com>
Bu işleme şunda yer alıyor:
@@ -1321,6 +1321,11 @@ int main() {
|
||||
return 1;
|
||||
}
|
||||
err = hsa_init();
|
||||
if (wsl_env && (err != HSA_STATUS_SUCCESS)) {
|
||||
printf("%shsa_init Failed, possibly no supported GPU devices%s\n",
|
||||
COL_RED, COL_RESET);
|
||||
return 1;
|
||||
}
|
||||
RET_IF_HSA_ERR(err)
|
||||
|
||||
// Acquire and display system information
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle