Ignore:
Timestamp:
Mar 22, 2016, 5:14:05 PM (3 years ago)
Author:
nmedfort
Message:

First attempt at dynamic segment size intergration.

File:
1 edited

Legend:

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

    r4976 r4986  
    3131    Value * bit00224466[4];
    3232    Value * bit11335577[4];
    33     for (unsigned i = 0; i<4; i++) {
     33
     34    for (unsigned i = 0; i < 4; i++) {
    3435        Value * s0 = iBuilder->CreateBlockAlignedLoad(input, {iBuilder->getInt32(0), iBuilder->getInt32(2 * i)});
    3536        Value * s1 = iBuilder->CreateBlockAlignedLoad(input, {iBuilder->getInt32(0), iBuilder->getInt32(2 * i + 1)});
     
    5960    kBuilder->prepareFunction();
    6061    Value * output[8];
    61     s2p(iBuilder, kBuilder->getInputStream(0), output);
     62
     63    Value * ptr = kBuilder->getInputStream(0);
     64    //iBuilder->CallPrintInt("ptr", iBuilder->CreatePtrToInt(ptr, iBuilder->getInt64Ty()));
     65    s2p(iBuilder, ptr, output);
    6266    for (unsigned j = 0; j < 8; ++j) {
     67        //iBuilder->CallPrintRegister("bit" + std::to_string(j + 1), output[j]);
    6368        iBuilder->CreateBlockAlignedStore(output[j], kBuilder->getOutputStream(j));
    6469    }
Note: See TracChangeset for help on using the changeset viewer.