Changeset 2507 in CLRX


Ignore:
Timestamp:
Oct 30, 2016, 9:33:20 AM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCm: change code and setup into codeOffset and setupOffset. fixed setting of code size.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdbin/ROCmBinaries.h

    r2505 r2507  
    4949{
    5050    CString kernelName; ///< kernel name
    51     cxbyte* setup;      ///< setup data
     51    uint64_t setupOffset;      ///< setup data
    5252    size_t codeSize;    ///< code size
    53     cxbyte* code;     ///< code
     53    uint64_t codeOffset;     ///< code
    5454};
    5555
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r2506 r2507  
    7878            throw Exception("Kernel offset is too big!");
    7979        kernelOffsets[j] = std::make_pair(value, j);
    80         kernels[j++] = { getSymbolName(i), binaryCode+value, size,
    81             binaryCode+value+0x100 };
     80        kernels[j++] = { getSymbolName(i), value, size, value+0x100 };
    8281    }
    8382    std::sort(kernelOffsets.get(), kernelOffsets.get()+kernelsNum,
     
    10099            throw Exception("Kernel size is too small!");
    101100        ROCmKernel& kernel = kernels[kernelOffsets[kernelsNum-1].second];
    102         uint64_t kcodeSize = codeSize - (kernelOffsets[kernelsNum-1].first+0x100);
     101        uint64_t kcodeSize = codeSize -
     102                (kernelOffsets[kernelsNum-1].first+0x100-codeOffset);
    103103        if (kernel.codeSize==0 && kcodeSize>0)
    104104            kernel.codeSize = kcodeSize;
Note: See TracChangeset for help on using the changeset viewer.