We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6d1e5 commit 048e197Copy full SHA for 048e197
torch/utils/cpp_extension.py
@@ -58,7 +58,7 @@ def _find_rocm_home():
58
# Guess #2
59
try:
60
hipcc = subprocess.check_output(
61
- ['which', 'hipcc']).decode().rstrip('\r\n')
+ ['which', 'hipcc'], stderr=subprocess.DEVNULL).decode().rstrip('\r\n')
62
# this will be either <ROCM_HOME>/hip/bin/hipcc or <ROCM_HOME>/bin/hipcc
63
rocm_home = os.path.dirname(os.path.dirname(hipcc))
64
if os.path.basename(rocm_home) == 'hip':
0 commit comments