Changeset: 289f6bccc26b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=289f6bccc26b
Modified Files:
monetdb5/extras/crackers/crackers_core_unordered.mx
Branch: holindex
Log Message:
Bring back the check for the number of elements/thread.
diffs (14 lines):
diff --git a/monetdb5/extras/crackers/crackers_core_unordered.mx
b/monetdb5/extras/crackers/crackers_core_unordered.mx
--- a/monetdb5/extras/crackers/crackers_core_unordered.mx
+++ b/monetdb5/extras/crackers/crackers_core_unordered.mx
@@ -1132,6 +1132,10 @@ static str CRKvectorized_MT_@2_@1 (const
/* automatic setting */
nthreads = GDKnr_threads;
}
+ if ((BUN) nthreads > n / 1000) {
+ /* more threads / smaller slices does not make sense */
+ nthreads = (int) (n / 1000) + 1;
+ }
mm = (n / nthreads);
if (alt == 1) {
ml = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list