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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.