pytorch/test/profiler
augusto.yjh c934ed6567 init kineto after torch module initialized (#131448)
Fixes #131020

As discussed in the issue thread,  we can use ` KINETO_DAEMON_INIT_DELAY_S` to delay the initialization of `kineto`  in case `kineto` is initialized before `libtorch_cuda.so`.

It's not clear to set a proper value of environmental variable `KINETO_DAEMON_INIT_DELAY_S`, here's a trick to make the initialization of `kineto` after the initialization of module `torch`. I'm not sure whether this is an acceptable trick, please take a look at this pr, thanks.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/131448
Approved by: https://github.com/sraikund16, https://github.com/briancoutinho
2024-10-31 13:24:24 +00:00
..
profiler_utils_mock_events.json
test_cpp_thread.cpp
test_cpp_thread.py
test_cpp_thread_lib.pyi
test_execution_trace.py [Profiler] Disable Dynamo-Sensitive Profiler Tests (#138762) 2024-10-25 00:25:49 +00:00
test_kineto.py init kineto after torch module initialized (#131448) 2024-10-31 13:24:24 +00:00
test_memory_profiler.py
test_profiler.py [Profiler] Disable Dynamo-Sensitive Profiler Tests (#138762) 2024-10-25 00:25:49 +00:00
test_profiler_tree.py
test_record_function.py
test_torch_tidy.py