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>
このコミットが含まれているのは:
1 親
4cca398b56
コミット
a433e6f48d
1ファイル変更
+5
@@ -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
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする