/usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__
NameSizeModeActions
comm.cpython-36.pyc3720644editdlrm
error.cpython-36.pyc1430644editdlrm
graphs.cpython-36.pyc158110644editdlrm
memory.cpython-36.pyc217170644editdlrm
nccl.cpython-36.pyc34440644editdlrm
nvtx.cpython-36.pyc19660644editdlrm
profiler.cpython-36.pyc16320644editdlrm
random.cpython-36.pyc55200644editdlrm
sparse.cpython-36.pyc1440644editdlrm
streams.cpython-36.pyc94850644editdlrm
_utils.cpython-36.pyc18920644editdlrm
__init__.cpython-36.pyc232100644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__/profiler.cpython-36.pyc (1632B)
3 Eg@s^ddlZddlZddlmZmZdddddd d gZdd d ZddZddZej ddZ dS)N)cudart check_errorZgpustarttimestampZgpuendtimestampZ gridsize3dZthreadblocksizeZstreamidzenableonstart 0Zconckerneltrace key_valuec Cst}t|dstd|dkr$tn|}|dkr:|jj}n|dkrL|jj}ntdtj dd<}|j dj d d |D|j t |j|j||WdQRXdS) NcudaOutputModez-HIP does not support profiler initialization!rcsvz;supported CUDA profiler output modes are: key_value and csvT)delete css|]}|jdVqdS)asciiN)encode).0fr?/usr/local/lib64/python3.6/site-packages/torch/cuda/profiler.py szinit..)rhasattrAssertionError DEFAULT_FLAGSrZ KeyValuePairZCSV RuntimeErrortempfileNamedTemporaryFilewritejoinflushrZcudaProfilerInitializename)Z output_fileflagsZ output_modertZoutput_mode_enumr rrrinits   rcCsttjdS)N)rrZcudaProfilerStartrrrrstart"srcCsttjdS)N)rrZcudaProfilerStoprrrrstop&src csztdVWdtXdS)N)rrrrrrprofile*s r )Nr) r contextlibrrrrrrcontextmanagerr rrrrs