Skip to content

Commit afbe1b4

Browse files
committed
Fix static allocation
1 parent c2beb32 commit afbe1b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/dbscan/shared.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ point<dim> pMinSerial(point<dim>* items, intT n) {
126126
template<int dim>
127127
point<dim> pMinParallel(point<dim>* items, intT n) {
128128
point<dim> pMin = point<dim>(items[0].x);
129-
intT P = getWorkers()*8;
129+
// intT P = getWorkers()*8;
130+
static const intT P = 36 * 8;
130131
intT blockSize = (n+P-1)/P;
131132
point<dim> localMin[P];
132133
for (intT i=0; i<P; ++i) {

0 commit comments

Comments
 (0)