Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ROCM] Extend try-catch mechanism for ROCM detection (pytorch#99980)
ROCM path detection currently relies on `hipconfig`. On some systems when calling `hipconfig` through `subprocess` python raises a `NotADirectoryError` that isn't catch at the moment. This commit adds `NotADirectoryError` to exceptions catched when calling `hipconfig`. Fixes pytorch#98629 Pull Request resolved: pytorch#99980 Approved by: https://github.com/jeffdaily, https://github.com/malfet
- Loading branch information