dynolog icon indicating copy to clipboard operation
dynolog copied to clipboard

"No processes were matched" after set parameter KINETO_DAEMON_INIT_DELAY_S

Open KepingYan opened this issue 6 months ago • 1 comments

Test script: scripts/pytorch/linear_model_example.py If I run it with command KINETO_USE_DAEMON=1 python3 scripts/pytorch/linear_model_example.py, I will meet this error as described in docs manifests as a segfault. Then I add parameter KINETO_DAEMON_INIT_DELAY_S to run this script KINETO_USE_DAEMON=1 KINETO_DAEMON_INIT_DELAY_S=3 python3 scripts/pytorch/linear_model_example.py, but the trace file won't be generated as expected.

$ dyno gputrace --log-file /tmp/libkineto_trace.json
Kineto config =
ACTIVITIES_LOG_FILE=/tmp/libkineto_trace.json
PROFILE_START_TIME=0
ACTIVITIES_DURATION_MSECS=500
PROFILE_REPORT_INPUT_SHAPES=false
PROFILE_PROFILE_MEMORY=false
PROFILE_WITH_STACK=false
PROFILE_WITH_FLOPS=false
PROFILE_WITH_MODULES=false
response length = 133
response = {"activityProfilersBusy":0,"activityProfilersTriggered":[],"eventProfilersBusy":0,"eventProfilersTriggered":[],"processesMatched":[]}
No processes were matched, please check --job-id or --pids flags

Environment:

Ubuntu 22.04
torch     2.4.0
dynolog install:
wget https://github.com/facebookincubator/dynolog/releases/download/v0.3.2/dynolog_0.3.2-0-amd64.deb
sudo dpkg -i dynolog_0.3.2-0-amd64.deb
sudo systemctl restart dynolog

KepingYan avatar Aug 22 '24 09:08 KepingYan