Skip to content

Commit 2a89407

Browse files
committed
Improve operations performance
1 parent 4878474 commit 2a89407

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

torch_cluster/triton/_kernels.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,6 @@ def _knn_segmented_kernel(
381381
y_norm_ptr = tl.advance(y_norm_ptr, (BLOCK_D, 0))
382382
y_rnorm = tl.rsqrt(y_sq + EPS) # 1/||y|| for cosine.
383383

384-
# if stride_xm % 8 == 0:
385-
# tl.multiple_of(stride_xm, 8) # Hint alignment.
386-
# if stride_xd % 8 == 0:
387-
# tl.multiple_of(stride_xd, 8)
388-
# if stride_ym % 8 == 0:
389-
# tl.multiple_of(stride_ym, 8)
390-
# if stride_yd % 8 == 0:
391-
# tl.multiple_of(stride_yd, 8)
392-
393384
for xb in range(MAX_X_BLOCKS):
394385
x_block_start = x_start + xb * BLOCK_N # Start of x block.
395386
offs_n = tl.arange(0, BLOCK_N) # Offsets within block.

0 commit comments

Comments
 (0)