PHengLEI-TestCases/Y02_ThreeD_M6_Unstruct_Bran.../constant.py

28 lines
456 B
Python
Raw Normal View History

2023-06-28 18:11:30 +08:00
ACL_SUCCESS = 0
# rule for mem
ACL_MEM_MALLOC_HUGE_FIRST = 0
ACL_MEM_MALLOC_HUGE_ONLY = 1
ACL_MEM_MALLOC_NORMAL_ONLY = 2
# rule for memory copy
ACL_MEMCPY_HOST_TO_HOST = 0
ACL_MEMCPY_HOST_TO_DEVICE = 1
ACL_MEMCPY_DEVICE_TO_HOST = 2
ACL_MEMCPY_DEVICE_TO_DEVICE = 3
#numpy data type
NPY_FLOAT32 = 11
NPY_FLOAT16 = 23
#profile para
ACL_PROF_ACL_API = 1
ACL_PROF_TASK_TIME = 2
ACL_PROF_AICPU_TRACE = 4
ACL_PROF_AICORE_METRICS = 8
ACL_PROF_L2CACHE = 16