()
| 12 | return("nvidia-smi not found.") |
| 13 | |
| 14 | def isGPU(): |
| 15 | return os.path.isfile('/proc/driver/nvidia/version') |
| 16 | |
| 17 | gpu_test = unittest.skipIf(not isGPU(), 'Not running GPU tests') |
| 18 | tpu_test = unittest.skipIf(len(os.environ.get('ISTPUVM', '')) == 0, 'Not running TPU tests') |
no outgoing calls