Cambricon / mlu-ops

Efficient operation implementation based on the Cambricon Machine Learning Unit (MLU) .
MIT License
103 stars 102 forks source link

[Feature](mlu-ops):Replace int8 and char type in instructor by int8_t. #1102

Closed mahxn0 closed 2 weeks ago

mahxn0 commented 2 weeks ago

Thanks for your contribution and we appreciate it a lot. :rocket::rocket:

1. Motivation

replace int8/int16 by int8_t/int16_t replace char type in kernel by int8_t

2. Modification

modified: kernels/abs/abs_block.mlu modified: kernels/active_rotated_filter/active_rotated_filter_unionx.mlu modified: kernels/adam_w/adam_w_union1.mlu modified: kernels/ball_query/ball_query_union1.mlu modified: kernels/bbox_overlaps/bbox_overlaps_union1.mlu modified: kernels/binary_op/binary_op_3pipeline.h modified: kernels/binary_op/binary_op_5pipeline.h modified: kernels/binary_op/binary_op_stride_3pipeline.h modified: kernels/binary_op/binary_op_tensor_scalar_3pipeline.h modified: kernels/border_align/border_align_backward/border_align_backward_union1.mlu modified: kernels/border_align/border_align_forward/border_align_forward_union1.mlu modified: kernels/box_iou_rotated/box_iou_rotated_aligned.h modified: kernels/box_iou_rotated/box_iou_rotated_nonaligned.h modified: kernels/box_iou_rotated/box_iou_rotated_utils.h modified: kernels/carafe/carafe_block.mlu modified: kernels/deform_roi_pool/deform_roi_pool_union1.mlu modified: kernels/diff_iou_rotated_sort_vertices_forward/diff_iou_rotated_sort_vertices_forward_block.mlu modified: kernels/div/div_union1.mlu modified: kernels/dynamic_point_to_voxel/dynamic_point_to_voxel_backward/dynamic_point_to_voxel_backward_union1.mlu modified: kernels/dynamic_point_to_voxel/dynamic_point_to_voxel_forward/dynamic_point_to_voxel_forward_union1.mlu modified: kernels/dynamic_point_to_voxel/dynamic_point_to_voxel_forward/dynamic_point_to_voxel_mask_block.mlu modified: kernels/fft/common/fft_common_kernels.mlu modified: kernels/fft/fft_optm_device/fft_c2c_stockham_gdram.h modified: kernels/fft/fft_optm_device/fft_c2r_stockham_gdram.h modified: kernels/fft/fft_optm_device/fft_generic_butterfly.h modified: kernels/fft/fft_optm_device/fft_nram_wram_allocate.h modified: kernels/fft/fft_optm_device/fft_r2c_stockham_gdram.h modified: kernels/fft/fft_optm_device/fft_sram_allocate.h modified: kernels/fft/fft_optm_device/fft_stockham_u1_device.mlu modified: kernels/focal_loss_sigmoid/focal_loss_sigmoid_backward_union1.mlu modified: kernels/focal_loss_sigmoid/focal_loss_sigmoid_forward_union1.mlu modified: kernels/generate_proposals_v2/generate_proposals_v2_nms_utils.h modified: kernels/lgamma/lgamma_block.mlu modified: kernels/log/log_union1.mlu modified: kernels/masked_im2col/masked_col2im_forward/masked_col2im_forward_union1.mlu modified: kernels/moe_dispatch/moe_dispatch_backward_data/moe_dispatch_backward_data_union1.mlu modified: kernels/moe_dispatch/moe_dispatch_backward_gate/moe_dispatch_backward_gate_union1.mlu modified: kernels/moe_dispatch/moe_dispatch_forward/moe_dispatch_forward_block.mlu modified: kernels/ms_deform_attn/ms_deform_attn_backward/ms_deform_attn_backward_fast_union1.mlu modified: kernels/ms_deform_attn/ms_deform_attn_backward/ms_deform_attn_backward_small_channels_union1.mlu modified: kernels/ms_deform_attn/ms_deform_attn_backward/ms_deform_attn_backward_union1.mlu modified: kernels/ms_deform_attn/ms_deform_attn_forward/ms_deform_attn_forward.h modified: kernels/ms_deform_attn/ms_deform_attn_forward/ms_deform_attn_forward.mlu modified: kernels/ms_deform_attn/ms_deform_attn_forward/ms_deform_attn_utils.h modified: kernels/ms_deform_attn/ms_deform_attn_forward/msda_forward_fast_union1.mlu modified: kernels/ms_deform_attn/ms_deform_attn_forward/msda_forward_small_channel_union1.mlu modified: kernels/ms_deform_attn/ms_deform_attn_forward/msda_forward_union1_default.mlu modified: kernels/mutual_information/mutual_information_backward/mutual_information_backward_utils.h modified: kernels/mutual_information/mutual_information_forward/mutual_information_forward_utils.h modified: kernels/nms_rotated/nms_rotated_union1.mlu modified: kernels/nms_rotated/nms_utils.h modified: kernels/points_in_boxes/points_in_boxes_block_kernel.mlu modified: kernels/poly_nms/poly_nms_block_gen_result.mlu modified: kernels/prior_box/prior_box_block.mlu modified: kernels/psamask/psamask_union1.mlu modified: kernels/psroipool/psroipool_block.mlu modified: kernels/roi_align_rotated/roi_align_rotated_block.mlu modified: kernels/roi_crop/roi_crop_block.mlu modified: kernels/roiaware_pool3d/roiaware_pool3d_union1.mlu modified: kernels/roipoint_pool3d/roipoint_pool3d.cpp modified: kernels/roipoint_pool3d/roipoint_pool3d.h modified: kernels/roipoint_pool3d/roipoint_pool3d_union1.mlu modified: kernels/roipoint_pool3d/roipoint_pool3d_union1_large_boxes_num.mlu modified: kernels/rotated_feature_align/rotated_feature_align_block.mlu modified: kernels/sparse_conv/get_indice_pairs/get_indice_pairs_block.mlu modified: kernels/sparse_conv/get_indice_pairs/get_indice_pairs_utils.h modified: kernels/sqrt/sqrt_union1.mlu modified: kernels/tensor_stride_process/tensor_stride_in_block.mlu modified: kernels/tensor_stride_process/tensor_stride_out_block.mlu modified: kernels/tensor_stride_process/tensor_stride_process_mlu.mlu modified: kernels/three_interpolate/three_interpolate_union1.mlu modified: kernels/three_nn_forward/three_nn_forward_union1.mlu modified: kernels/tin_shift/tin_shift_union1.mlu modified: kernels/unary_op/complex_unary_op_3pipeline.h modified: kernels/unary_op/complex_unary_op_stride_3pipeline.h modified: kernels/unary_op/unary_op_3pipeline.h modified: kernels/unary_op/unary_op_4pipeline.h modified: kernels/unary_op/unary_op_5pipeline.h modified: kernels/unary_op/unary_op_no_pipeline.h modified: kernels/unary_op/unary_op_stride_3pipeline.h modified: kernels/utils/common.h modified: kernels/voxel_pooling_forward/voxel_pooling_forward_union1.mlu modified: kernels/voxelization/voxelization.cpp modified: kernels/voxelization/voxelization_kernel.mlu modified: kernels/yolo_box/yolo_box_block.mlu modified: test/mlu_op_gtest/pb_gtest/src/internal_kernel/fill_llc/fill_llc_device.mlu modified: test/mlu_op_gtest/pb_gtest/src/internal_kernel/fill_ram/fill_ram_device.mlu