OSError: Missing: valgrind, callgrind_control, callgrind_annotate
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.3k
- Forks
- 4.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
The error occurs on below step:
8. Collecting instruction counts with Callgrind:
Traceback (most recent call last):
File "benchmark.py", line 805, in
stats_v0 = t0.collect_callgrind()
File "/usr/local/lib/python3.8/dist-packages/torch/utils/benchmark/utils/timer.py", line 486, in collect_callgrind
result = valgrind_timer_interface.wrapper_singleton().collect_callgrind(
File "/usr/local/lib/python3.8/dist-packages/torch/utils/benchmark/utils/valgrind_wrapper/timer_interface.py", line 526, in collect_callgrind
self._validate()
File "/usr/local/lib/python3.8/dist-packages/torch/utils/benchmark/utils/valgrind_wrapper/timer_interface.py", line 512, in _validate
raise OSError("Missing: " + ", ".join(missing_cmds))
OSError: Missing: valgrind, callgrind_control, callgrind_annotate
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at benchmark.py line 805 and follow collect_callgrind through torch/utils/benchmark/utils/timer.py and valgrind_wrapper/timer_interface.py. Check how the tutorial environment is expected to provide valgrind, callgrind_control, and callgrind_annotate. Done means the documented benchmark step no longer stops with the reported missing-command error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100