KOKIAOKI / 3d_bbs

MIT License
172 stars 28 forks source link

[Fix]: block size and valid index size of cuda kernel #6

Closed KOKIAOKI closed 9 months ago

KOKIAOKI commented 9 months ago

I detected an additional bug of cuda illegal access error in calc_scores.

transset_size should be transset_size -1 in the argument of calc_scores_kernel. Correct line is

calc_scores_kernel<<<num_blocks, block_size, 0, stream>>>(
    voxelmaps_ptr_->d_multi_buckets_ptrs_.data(),
    voxelmaps_ptr_->d_voxelmaps_info_.data(),
    d_transset.data(),
    transset_size - 1,
    d_src_points_.data(),
    src_size_);

Also, I renamed some function and fixed output statements.