Skip to content

Commit

Permalink
add more syncs (apache#3151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurawly authored and wweic committed May 13, 2019
1 parent 34803c4 commit d4ecc1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions topi/python/topi/cuda/nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def get_valid_counts_upsweep(data, idx_in, idx, partial):
idx[bx * num_anchors + tx * elem_per_thread + i] = \
idx[bx * num_anchors + tx * elem_per_thread + i - 1] + \
idx_in[bx * num_anchors + tx * elem_per_thread + i]
ib.emit(tvm.make.Call(None, 'tvm_storage_sync',
tvm.convert(['shared']),
tvm.expr.Call.Intrinsic, None, 0))
return ib.get()

def get_valid_counts_scan(data, partial_in, partial):
Expand Down

0 comments on commit d4ecc1d

Please sign in to comment.