/usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__/profiler.cpython-36.pyc (1632B)
3
Eg @ s^ d dl Z d dlZddlmZmZ dddddd d
gZddd
Zdd Zdd Zej dd Z
dS ) N )cudartcheck_errorZgpustarttimestampZgpuendtimestampZ
gridsize3dZthreadblocksizeZstreamidzenableonstart 0Zconckerneltrace key_valuec C s t }t|dstd|d kr$tn|}|dkr:|jj}n|dkrL|jj}ntdtj dd<}|j
djd d
|D |j t
|j|j| | W d Q R X d S )NcudaOutputModez-HIP does not support profiler initialization!r csvz;supported CUDA profiler output modes are: key_value and csvT)delete
c s s | ]}|j d V qdS )asciiN)encode).0f r ?/usr/local/lib64/python3.6/site-packages/torch/cuda/profiler.py
s zinit..)r hasattrAssertionError
DEFAULT_FLAGSr ZKeyValuePairZCSVRuntimeErrortempfileNamedTemporaryFilewritejoinflushr ZcudaProfilerInitializename)Zoutput_fileflagsZoutput_modertZoutput_mode_enumr
r r r init s
r c C s t t j d S )N)r r ZcudaProfilerStartr r r r start" s r c C s t t j d S )N)r r ZcudaProfilerStopr r r r stop&