(cmd)
| 107 | |
| 108 | |
| 109 | def 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 | |
| 119 | def get_cuda_info(): |
no test coverage detected