Skip to content

Commit

Permalink
[Fix](mluOpGenerateProposalsV2): fix memcheck bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahxn0 committed Nov 28, 2024
1 parent 273ccdc commit 95211f7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ __mlu_func__ void nonMaximumSuppress(
int core_num = 0;
int nram_save_count = 0;

limit =
(MAX_NRAM_SIZE - NFU_ALIGN_SIZE - nram_save_limit_count * sizeof(T) * 5) /
memory_block;
limit = (MAX_NRAM_SIZE - NFU_ALIGN_SIZE * sizeof(T) -
nram_save_limit_count * sizeof(T) * 5) /
memory_block;
getComputeParams(scores_num, limit, memory_block, sizeof(T), &max_seg_num,
&repeat, &remain_num, &core_num, &core_offset);
// init nram ptr
Expand Down

0 comments on commit 95211f7

Please sign in to comment.