Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 048e197

Browse files
committedApr 1, 2020
Suppress output when checking hipcc
Signed-off-by: lizz <lizz@sensetime.com>
1 parent 2c6d1e5 commit 048e197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎torch/utils/cpp_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _find_rocm_home():
5858
# Guess #2
5959
try:
6060
hipcc = subprocess.check_output(
61-
['which', 'hipcc']).decode().rstrip('\r\n')
61+
['which', 'hipcc'], stderr=subprocess.DEVNULL).decode().rstrip('\r\n')
6262
# this will be either <ROCM_HOME>/hip/bin/hipcc or <ROCM_HOME>/bin/hipcc
6363
rocm_home = os.path.dirname(os.path.dirname(hipcc))
6464
if os.path.basename(rocm_home) == 'hip':

0 commit comments

Comments
 (0)
Please sign in to comment.