Skip to content

Commit caf9660

Browse files
jingxu10min-jean-chomin-jean-cho
authored
silence output of numactl_available dummy cmd run (#952) (#1001)
Co-authored-by: min-jean-cho <[email protected]> Co-authored-by: min-jean-cho <[email protected]> Co-authored-by: min-jean-cho <[email protected]>
1 parent 3bd3b17 commit caf9660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intel_extension_for_pytorch/cpu/launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def add_lib_preload(self, lib_type=None):
253253
def is_numactl_available(self):
254254
numactl_available = False
255255
cmd = ["numactl", "-C", "0", "-m", "0", "ls"]
256-
r = subprocess.run(cmd, env=os.environ)
256+
r = subprocess.run(cmd, env=os.environ, stdout=subprocess.DEVNULL)
257257
if r.returncode == 0:
258258
numactl_available = True
259259
return numactl_available

0 commit comments

Comments
 (0)