Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix warnings on gcc, build on msvc
  • Loading branch information
nyalldawson committed Apr 28, 2023
1 parent e1a143d commit d3d8ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/pdal_wrench/utils.cpp
Expand Up @@ -89,10 +89,10 @@ MetadataNode getReaderMetadata(std::string inputFile, MetadataNode *pointLayoutM
return r.getMetadata();
}

#define CHUNK_SIZE 100000

void runPipelineParallel(point_count_t totalPoints, bool isStreaming, std::vector<std::unique_ptr<PipelineManager>>& pipelines, int max_threads, bool verbose)
{
const int CHUNK_SIZE = 100'000;
int num_chunks = totalPoints / CHUNK_SIZE;

if (verbose)
Expand All @@ -116,7 +116,7 @@ void runPipelineParallel(point_count_t totalPoints, bool isStreaming, std::vecto
PipelineManager* pipeline = pipelines[i].get();
if (isStreaming)
{
p.add([pipeline, CHUNK_SIZE]() {
p.add([pipeline]() {

MyTable table(CHUNK_SIZE);
pipeline->executeStream(table);
Expand Down

0 comments on commit d3d8ba1

Please sign in to comment.