MCPcopy Create free account
hub / github.com/pytorch/pytorch / process_main

Method process_main

torch/_inductor/autotune_process.py:91–105  ·  view source on GitHub ↗

Entry point for the child process.

(
        request_queue: Queue[Any],
        response_queue: Queue[Any],
    )

Source from the content-addressed store, hash-verified

89
90 @staticmethod
91 def process_main(
92 request_queue: Queue[Any],
93 response_queue: Queue[Any],
94 ) -> None:
95 """
96 Entry point for the child process.
97 """
98 log.debug(
99 "Entering TuningProcess child. Visible devices = %s",
100 os.environ.get(CUDA_VISIBLE_DEVICES),
101 )
102 try:
103 TuningProcess.workloop(request_queue, response_queue)
104 except Exception as ex:
105 log.exception("Exception in TuningProcess: %s", ex)
106
107 @staticmethod
108 def workloop(request_queue: Queue[Any], response_queue: Queue[Any]) -> None:

Callers

nothing calls this directly

Calls 4

workloopMethod · 0.80
exceptionMethod · 0.80
debugMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected