Skip to content

Commit 34285aa

Browse files
Bugfix
Does not re-compute datatype if already provided
1 parent 18b5bd3 commit 34285aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cluster/src/Runner.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ int Runner::run()
151151
}
152152
progress.end();
153153
sequences.resize(idx);
154-
154+
if (pred64 != NULL) {
155+
Runner::set_datatype(pred64->get_datatype());
156+
} else {
155157
#pragma omp parallel for reduction(max:largest_count)
156158
for (int i = 0; i < sequences.size(); i++) {
157159
auto chrom = sequences[i];
@@ -163,6 +165,7 @@ int Runner::run()
163165
largest_count = l_count;
164166
}
165167
}
168+
}
166169
clockDT.end();
167170
cout << "Time for computing datatype: " << clockDT.total() << endl;
168171

0 commit comments

Comments
 (0)