MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / _call_sync

Method _call_sync

tensorrt_llm/executor/rpc/rpc_client.py:529–539  ·  view source on GitHub ↗

Synchronous version of RPC call.

(self, method_name, *args, **kwargs)

Source from the content-addressed store, hash-verified

527 time.sleep(0.2)
528
529 def _call_sync(self, method_name, *args, **kwargs):
530 """Synchronous version of RPC call."""
531 if enable_llmapi_debug() or logger.level == 'debug':
532 logger_debug(f"[client] RPC Client calling method: {method_name}")
533 nvtx_mark_debug(f"RPC.sync.{method_name}",
534 color="green",
535 category="RPC")
536 future = asyncio.run_coroutine_threadsafe(
537 self._call_async(method_name, *args, **kwargs), self._loop)
538 result = future.result()
539 return result
540
541 def _call_future(self, name: str, *args,
542 **kwargs) -> concurrent.futures.Future:

Callers

nothing calls this directly

Calls 5

_call_asyncMethod · 0.95
nvtx_mark_debugFunction · 0.90
enable_llmapi_debugFunction · 0.85
logger_debugFunction · 0.85
resultMethod · 0.45

Tested by

no test coverage detected