Ignore:
Timestamp:
Feb 6, 2018, 10:24:10 PM (22 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBinGen: Fixed putting argument address space to ROCm metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r3731 r3732  
    17201720                argInfo.valueKind == ROCmValueKind::GLOBAL_BUFFER)
    17211721            {
    1722                 if (argInfo.addressSpace > ROCmAddressSpace::MAX_VALUE)
     1722                if (argInfo.addressSpace > ROCmAddressSpace::MAX_VALUE ||
     1723                    argInfo.addressSpace == ROCmAddressSpace::NONE)
    17231724                    throw BinGenException("Unknown AddressSpace");
    17241725                output += "        AddrSpaceQual:   ";
    1725                 output += rocmAddrSpaceTypesTbl[cxuint(argInfo.addressSpace)];
     1726                output += rocmAddrSpaceTypesTbl[cxuint(argInfo.addressSpace)-1];
    17261727                output += "\n";
    17271728            }
Note: See TracChangeset for help on using the changeset viewer.