Ignore:
Timestamp:
Dec 3, 2017, 12:40:40 PM (17 months ago)
Author:
nmedfort
Message:

Bug fixes and simplified MultiBlockKernel? logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/source_kernel.cpp

    r5706 r5755  
    406406
    407407void MemorySourceKernel::generateInitializeMethod(const std::unique_ptr<KernelBuilder> & kb) {
    408     kb->setBaseAddress("sourceBuffer", kb->CreatePointerCast(kb->getScalarField("fileSource"), kb->getVoidPtrTy()));
    409     kb->setBufferedSize("sourceBuffer", kb->getScalarField("fileSize"));
    410     kb->setCapacity("sourceBuffer", kb->getScalarField("fileSize"));
     408    Value * const fileSource = kb->getScalarField("fileSource");
     409    kb->setBaseAddress("sourceBuffer", fileSource);
     410    Value * const fileSize = kb->getScalarField("fileSize");
     411    kb->setBufferedSize("sourceBuffer", fileSize);
     412    kb->setCapacity("sourceBuffer", fileSize);
    411413}
    412414
Note: See TracChangeset for help on using the changeset viewer.