MCPcopy Create free account
hub / github.com/Kaggle/docker-python / isGPU

Function isGPU

tests/common.py:14–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 return("nvidia-smi not found.")
13
14def isGPU():
15 return os.path.isfile('/proc/driver/nvidia/version')
16
17gpu_test = unittest.skipIf(not isGPU(), 'Not running GPU tests')
18# b/342143152 P100s are slowly being unsupported in new release of popular ml tools such as RAPIDS.

Callers 2

test_backendMethod · 0.90
common.pyFile · 0.85

Calls

no outgoing calls

Tested by 1

test_backendMethod · 0.72