Skip to content

Commit

Permalink
Don't make a local copy
Browse files Browse the repository at this point in the history
---
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mppf committed Dec 9, 2024
1 parent 6187e04 commit f18eebe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ssort_chpl/SuffixSortImpl.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -1921,21 +1921,21 @@ proc ssortDcx(const cfg:ssortConfig(?), const thetext, n: cfg.offsetType,
countBucketsWithCommon += 1;
}

var localSA: [bucketStart..bucketEnd] SA.eltType;
localSA = SA[bucketStart..bucketEnd];
//var localSA: [bucketStart..bucketEnd] SA.eltType;
//localSA = SA[bucketStart..bucketEnd];

const localCover = cfg.cover;

local {
//local {
sortSuffixesCompletely(cfg, thetext, n=n,
SampleText, charsPerMod,
localSA, bucketStart..bucketEnd,
SA, bucketStart..bucketEnd,
localCover,
myPartitionTime, myLookupTime,
mySortEachNonsampleTime, myMergeTime);
}
//}

SA[bucketStart..bucketEnd] = localSA;
//SA[bucketStart..bucketEnd] = localSA;

partitionTime += myPartitionTime;
lookupTime += myLookupTime;
Expand Down

0 comments on commit f18eebe

Please sign in to comment.