MCPcopy Create free account
hub / github.com/NVIDIA/DALI / check_shm_for_dali

Function check_shm_for_dali

dali/test/python/test_pool_utils.py:67–73  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

65
66
67def check_shm_for_dali(msg):
68 shm_paths = ["/dev/shm/", "/run/shm/"]
69 for shm_path in shm_paths:
70 if os.path.isdir(shm_path):
71 shm_handles = os.listdir(shm_path)
72 for handle in shm_handles:
73 assert "nvidia_dali_" not in handle, msg.format(shm_path + handle)
74
75
76def setup_module():

Callers 3

capture_processesFunction · 0.85
setup_moduleFunction · 0.85
teardown_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected