MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / submit

Function submit

tests/cvcuda/python/test_multi_threading.py:26–28  ·  view source on GitHub ↗
(thread_no: int, resource: cvcuda.Resource)

Source from the content-addressed store, hash-verified

24 """Check that Resource::submitSync is thread-safe"""
25
26 def submit(thread_no: int, resource: cvcuda.Resource) -> None:
27 for _ in range(10000):
28 resource.submitStreamSync(cvcuda.Stream())
29
30 # Easiest way to get a Resource from Python
31 resource = cvcuda.Tensor((720, 1280), np.uint8)

Callers

nothing calls this directly

Calls 1

StreamMethod · 0.45

Tested by

no test coverage detected