superliuxz / DBSCAN

Density-Based Spatial Clustering of Applications with Noise
GNU General Public License v2.0
9 stars 2 forks source link

sorting #11

Closed superliuxz closed 4 years ago

superliuxz commented 4 years ago

grid is stupid. i am stupid.

sorting by l1 is the king.

Another example of something you could try is moving
const float ux = x[u], uy = y[u];
to after the __syncthreads(); . Then you might be able to reuse a register that you don't need anymore, rather than holding it in registers for 12 lines of code. (This is generally advised in c++ anyway, that you don't declare variables until the point that you actually need them, as it's easier for the reader to see all the code that's relevant all at once.)
superliuxz commented 4 years ago

so the profiler has been warning my thrust call. fixed in 5b574b8762476ea4134312e6235d022fcbbc7b07

superliuxz commented 4 years ago

completed as dffac729e2b15d6e66786cbc4e335e4eac97aef2