mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Fixes #112637 Fixed all the issues listed. ### Error Counts |File | Count Before | Count now| |---- | ---- | ---- | |`torch/utils/tensorboard/_proto_graph.py` | 9 | 0| |`torch/utils/tensorboard/_pytorch_graph.py` | 27 | 14| |`torch/utils/tensorboard/_utils.py` | 5 | 2| |`torch/utils/tensorboard/summary.py` | 27 | 12| |`torch/utils/tensorboard/writer.py` | 42 | 4| |`torch/utils/tensorboard/_caffe2_graph.py` | 19 | 0| |`torch/utils/hipify/constants.py` | 2 | 0| Pull Request resolved: https://github.com/pytorch/pytorch/pull/113336 Approved by: https://github.com/ezyang
63 lines
1.2 KiB
Python
63 lines
1.2 KiB
Python
"""Constants for annotations in the mapping.
|
|
|
|
The constants defined here are used to annotate the mapping tuples in cuda_to_hip_mappings.py.
|
|
They are based on
|
|
https://github.com/ROCm-Developer-Tools/HIP/blob/master/hipify-clang/src/Statistics.h
|
|
and fall in three categories: 1) type of mapping, 2) API of mapping, 3) unsupported
|
|
mapping.
|
|
"""
|
|
|
|
CONV_VERSION = 0,
|
|
CONV_INIT = 1
|
|
CONV_DEVICE = 2
|
|
CONV_MEM = 3
|
|
CONV_KERN = 4
|
|
CONV_COORD_FUNC = 5
|
|
CONV_MATH_FUNC = 6
|
|
CONV_DEVICE_FUNC = 7
|
|
CONV_SPECIAL_FUNC = 8
|
|
CONV_STREAM = 9
|
|
CONV_EVENT = 10
|
|
CONV_OCCUPANCY = 11
|
|
CONV_CONTEXT = 12
|
|
CONV_PEER = 13
|
|
CONV_MODULE = 14
|
|
CONV_CACHE = 15
|
|
CONV_EXEC = 16
|
|
CONV_ERROR = 17
|
|
CONV_DEF = 18
|
|
CONV_TEX = 19
|
|
CONV_GL = 20
|
|
CONV_GRAPHICS = 21
|
|
CONV_SURFACE = 22
|
|
CONV_JIT = 23
|
|
CONV_D3D9 = 24
|
|
CONV_D3D10 = 25
|
|
CONV_D3D11 = 26
|
|
CONV_VDPAU = 27
|
|
CONV_EGL = 28
|
|
CONV_THREAD = 29
|
|
CONV_OTHER = 30
|
|
CONV_INCLUDE = 31
|
|
CONV_INCLUDE_CUDA_MAIN_H = 32
|
|
CONV_TYPE = 33
|
|
CONV_LITERAL = 34
|
|
CONV_NUMERIC_LITERAL = 35
|
|
CONV_LAST = 36
|
|
|
|
API_DRIVER = 37
|
|
API_RUNTIME = 38
|
|
API_BLAS = 39
|
|
API_SPECIAL = 40
|
|
API_RAND = 41
|
|
API_LAST = 42
|
|
API_FFT = 43
|
|
API_RTC = 44
|
|
API_ROCTX = 45
|
|
|
|
HIP_UNSUPPORTED = 46
|
|
API_PYTORCH = 1337
|
|
API_CAFFE2 = 1338
|
|
API_C10 = 1339
|
|
API_ROCMSMI = 1340
|