Commit a539792
committed
Use unified padded length in kernel instead of array
Previously, the CUDA kernel was incorrectly passed an array of per-trajectory
lengths (`P`), even though all trajectories in a batch were padded to a common
length. This caused the kernel to terminate loops prematurely based on the
individual lengths, though it did not affect the computed Frechet distance due
to padding with repeated points.
This commit fixes the issue by replacing the per-trajectory length array with a
single integer `P` representing the unified (padded) length. The kernel
interface and loop logic are adjusted accordingly.
This is a minor internal fix with no observable change in output.1 parent fe776bb commit a539792
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 104 | | |
109 | 105 | | |
110 | 106 | | |
| |||
119 | 115 | | |
120 | 116 | | |
121 | 117 | | |
122 | | - | |
| 118 | + | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
0 commit comments