MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / run_shell_command

Function run_shell_command

tools/summary_env.py:109–116  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

107
108
109def run_shell_command(cmd):
110 out, err = subprocess.Popen(
111 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True
112 ).communicate()
113 if err:
114 return None
115 else:
116 return out.decode('utf-8')
117
118
119def get_cuda_info():

Callers 9

get_os_infoFunction · 0.70
get_gcc_versionFunction · 0.70
get_clang_versionFunction · 0.70
get_cmake_versionFunction · 0.70
get_cuda_infoFunction · 0.70
_get_cudnn_verFunction · 0.70
get_cudnn_infoFunction · 0.70
get_driver_infoFunction · 0.70
get_nvidia_gpu_driverFunction · 0.70

Calls 2

decodeMethod · 0.80
communicateMethod · 0.45

Tested by

no test coverage detected