Ignore:
Timestamp:
Jan 25, 2017, 4:25:24 PM (2 years ago)
Author:
cameron
Message:

radix64/base64 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/base64.cpp

    r5267 r5277  
    5858    fileSize->setName("fileSize");
    5959
    60     //Round up to a multiple of 4.
    61     const unsigned segmentSize = ((codegen::SegmentSize + 3)/4) * 4;
     60    //Round up to a multiple of 3.
     61    const unsigned segmentSize = ((codegen::SegmentSize + 2)/3) * 3;
    6262   
    6363    const unsigned bufferSegments = codegen::BufferSegments;
     
    6565    ExternalFileBuffer ByteStream(iBuilder, iBuilder->getStreamSetTy(1, 8));
    6666
    67     CircularBuffer Expanded3_4Out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * bufferSegments * 16);
    68     CircularBuffer Radix64out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * bufferSegments * 16);
    69     LinearCopybackBuffer Base64out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * bufferSegments * 16 + 2);
     67    CircularBuffer Expanded3_4Out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * 4/3 * bufferSegments);
     68    CircularBuffer Radix64out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * 4/3 * bufferSegments);
     69    LinearCopybackBuffer Base64out(iBuilder, iBuilder->getStreamSetTy(1, 8), segmentSize * 4/3 * bufferSegments);
    7070   
    71     MMapSourceKernel mmapK(iBuilder, segmentSize * bufferSegments * 16);
     71    MMapSourceKernel mmapK(iBuilder, segmentSize);
    7272    mmapK.generateKernel({}, {&ByteStream});
    7373    mmapK.setInitialArguments({fileSize});
Note: See TracChangeset for help on using the changeset viewer.