Ignore:
Timestamp:
Aug 4, 2017, 12:31:21 PM (22 months ago)
Author:
nmedfort
Message:

Modified stream set buffers to use heap memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/pipeline.cpp

    r5591 r5597  
    4646void generateSegmentParallelPipeline(const std::unique_ptr<KernelBuilder> & iBuilder, const std::vector<Kernel *> & kernels) {
    4747
    48     assert (codegen::BufferSegments >= codegen::ThreadNum);
    49 
    5048    const unsigned n = kernels.size();
    5149    Module * const m = iBuilder->getModule();
     
    5452    Constant * nullVoidPtrVal = ConstantPointerNull::getNullValue(voidPtrTy);
    5553    std::vector<Type *> structTypes;
     54
     55    codegen::BufferSegments = std::max(codegen::BufferSegments, codegen::ThreadNum);
    5656
    5757    Value * instance[n];
Note: See TracChangeset for help on using the changeset viewer.