Ignore:
Timestamp:
Mar 10, 2016, 4:10:02 PM (3 years ago)
Author:
nmedfort
Message:

Some fixes for threading and kernel builder.

File:
1 edited

Legend:

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

    r4960 r4968  
    9090    Value * scanMatchKernelStruct = mScanMatchKernel->generateKernelInstance();
    9191
     92
    9293    Value * gep = iBuilder->CreateGEP(scanMatchKernelStruct, {iBuilder->getInt32(0), iBuilder->getInt32(0), iBuilder->getInt32(mFileBufIdx)});
    93     Value* filebuf = iBuilder->CreateBitCast(input_param, S);
     94    Value * filebuf = iBuilder->CreateBitCast(input_param, S);
    9495    iBuilder->CreateStore(filebuf, gep);
     96
    9597    gep = iBuilder->CreateGEP(scanMatchKernelStruct, {iBuilder->getInt32(0), iBuilder->getInt32(0), iBuilder->getInt32(mFileSizeIdx)});
    9698    iBuilder->CreateStore(buffersize_param, gep);
     99
     100
    97101    gep = iBuilder->CreateGEP(scanMatchKernelStruct, {iBuilder->getInt32(0), iBuilder->getInt32(0), iBuilder->getInt32(mFileNameIdx)});
    98102    iBuilder->CreateStore(filename_param, gep);
Note: See TracChangeset for help on using the changeset viewer.