BMLib Technical Reference Manual
- 1. Disclaimer
- 2. Release note
- 3. Quick Start
- 4. Basic Concepts and Functions of Bmlib
- 5. Detailed Interface Introductions to bmlib
- 5.1. Creation and Destruction of Device Handle
- 5.2. Interfaces of memory help functions
- 5.3. Application and Release of Global Memory
- 5.4. Data Transportation between Host and Global Memory
- 5.4.1. bm_memcpy_s2d
- 5.4.2. bm_memcpy_s2d_partial_offset
- 5.4.3. bm_memcpy_s2d_partial
- 5.4.4. bm_memcpy_d2s
- 5.4.5. bm_memcpy_d2s_partial_offset
- 5.4.6. bm_memcpy_d2s_partial
- 5.4.7. bm_mem_convert_system_to_device_neuron
- 5.4.8. bm_mem_convert_system_to_device_neuron_byte
- 5.4.9. bm_mem_convert_system_to_device_coeff
- 5.4.10. bm_mem_convert_system_to_device_coeff_byte
- 5.5. Data Transportation in Global Memory
- 5.6. Global memory transportation between different devices
- 5.7. Mapping and Consistency Management of Global Memory on the Host Side
- 5.8. Synchronization of API
- 5.9. Profile Interface
- 5.10. Power Management Interface
- 5.11. Device Management Interface
- 5.11.1. bm_get_misc_info
- 5.11.2. bm_get_chipid
- 5.11.3. bm_get_stat
- 5.11.4. bm_get_gmem_heap_id
- 5.11.5. bmlib_log_get_level
- 5.11.6. bmlib_log_set_level
- 5.11.7. bmlib_log_set_callback
- 5.11.8. bm_set_debug_mode
- 5.11.9. bmlib_set_api_dbg_callback
- 5.11.10. bm_get_tpu_current
- 5.11.11. bm_get_board_max_power
- 5.11.12. bm_get_board_power
- 5.11.13. bm_get_fan_speed
- 5.11.14. bm_get_ecc_correct_num
- 5.11.15. bm_get_12v_atx
- 5.11.16. bm_get_sn
- 5.11.17. bm_get_status
- 5.11.18. bm_get_tpu_minclk
- 5.11.19. bm_get_tpu_maxclk
- 5.11.20. bm_get_driver_version
- 5.11.21. bm_get_board_name
- 5.11.22. bm_get_board_temp
- 5.11.23. bm_get_chip_temp
- 5.11.24. bm_get_tpu_power
- 5.11.25. bm_get_tpu_volt
- 5.12. Enable of A53
- 6. Definition of Relevant Data Structure