Changeset 2533 in CLRX


Ignore:
Timestamp:
Nov 4, 2016, 5:07:51 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Change type of offset and size fields in ROCmRegion.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

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

    r2531 r2533  
    4949{
    5050    CString regionName; ///< region name
    51     uint64_t size;    ///< data size
    52     uint64_t offset;     ///< data
     51    size_t size;    ///< data size
     52    size_t offset;     ///< data
    5353    bool isKernel;
    5454};
  • CLRadeonExtender/trunk/amdasm/DisasmROCm.cpp

    r2532 r2533  
    116116        const ROCmRegion& region = binary.getRegion(i);
    117117        input->regions[i] = { region.regionName, size_t(region.size),
    118             region.offset - codeOffset, region.isKernel };
     118            size_t(region.offset - codeOffset), region.isKernel };
    119119    }
    120120   
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r2530 r2533  
    9696            throw Exception("Kernel size is too small!");
    9797       
    98         const uint64_t regSize = end - symOffsets[i-1].first;
     98        const size_t regSize = end - symOffsets[i-1].first;
    9999        if (region.size==0)
    100100            region.size = regSize;
Note: See TracChangeset for help on using the changeset viewer.