SyntaxError
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
Hi, I followed your instructions to profile the following codes:
#This is the testing program to see whether the nvprof can work or not
import torch
import torch.cuda.profiler as profiler
from apex import pyprof
pyprof.nvtx.init()
torch.autograd.profiler.emit_nvtx()
total = 0
for i in range(100000):
total = total + i
print(total)
I followed the instruction on the pyprof website (https://github.com/NVIDIA/apex/tree/master/apex/pyprof). The error came when I tried the last line of command:
python -m apex.pyprof.prof --csv net.dict > results.csv
The error message is shown below:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/yingj4/.local/lib/python3.5/site-packages/apex/pyprof/prof/__main__.py", line 10, in <module>
main()
File "/home/yingj4/.local/lib/python3.5/site-packages/apex/pyprof/prof/prof.py", line 182, in main
kernel = eval(line)
File "<string>", line 1
no such table: CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL
^
SyntaxError: invalid syntax
It seems to have an incompatibility with the python file . May I ask how to fix this issue?
Also, the sql file is empty.
Thank you!
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the reported command, python -m apex.pyprof.prof --csv net.dict > results.csv, using the profiling output described in the issue. Start with apex/pyprof/prof/__main__.py and apex/pyprof/prof/prof.py, especially the main() path that evaluates the kernel text. Done means the command handles the reported profiling input without the SyntaxError and produces the expected CSV output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100