MCPcopy Create free account
hub / github.com/apache/tvm-ffi / gen_check_stream_mod

Function gen_check_stream_mod

tests/python/test_stream.py:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49
50def gen_check_stream_mod() -> tvm_ffi.Module:
51 return tvm_ffi.cpp.load_inline(
52 name="check_stream",
53 cpp_sources="""
54 void check_stream(int device_type, int device_id, uint64_t stream) {
55 uint64_t cur_stream = reinterpret_cast<uint64_t>(TVMFFIEnvGetStream(device_type, device_id));
56 TVM_FFI_ICHECK_EQ(cur_stream, stream);
57 }
58 """,
59 functions=["check_stream"],
60 )
61
62
63def test_raw_stream() -> None:

Callers 4

test_raw_streamFunction · 0.85
test_torch_streamFunction · 0.85
test_torch_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected