Changeset 2550 in CLRX


Ignore:
Timestamp:
Nov 7, 2016, 10:59:00 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Update.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r2547 r2550  
    635635    /// get note section
    636636    static ElfRegionTemplate noteSection()
    637     { return ElfRegionTemplate(0, (const cxbyte*)nullptr, 4, ".note", SHT_NOTE, 0); }
     637    { return ElfRegionTemplate(0, (const cxbyte*)nullptr, sizeof(typename Types::Word),
     638                ".note", SHT_NOTE, 0); }
    638639};
    639640
  • CLRadeonExtender/trunk/amdbin/AmdCL2BinGen.cpp

    r2516 r2550  
    16811681};
    16821682
     1683/* TODO: add gpu values tables for various driver version */
    16831684static const AMDGPUArchValues amdGpuArchValuesTbl[] =
    16841685{
     
    19811982            ::memcpy(noteBuf.get(), noteSectionData16_3, sizeof(noteSectionData16_3));
    19821983            // set AMDGPU type
     1984            /*
     1985             * AMD - 1 - 00000001 00000000
     1986             * AMD - 2 - 00000001 00000000 00010101
     1987             * AMD - 3 - size=0x1a, 00070004 major minor stepping AMD\0 AMDGPU\0
     1988             * AMD - 4 - size=0x29 00000019 00000001 00000000
     1989             *      "AMD HSA Runtime Finalizer" 00000000
     1990             * AMD - 5 - size=0x19 \x16\000-hsa_call_convention=\0\0
     1991             */
    19831992            SULEV(*(uint32_t*)(noteBuf.get()+noteAMDGPUTypeOffset_16_3),
    19841993                  amdGpuArchValues.major);
     
    20572066        if (!is16_3Ver)
    20582067        {   /* this order of section for 1912.05 driver version */
     2068            /* AMD - 1 - 00000001 00000000
     2069             * AMD - 2 - 00000001 00000000 00010101
     2070             * AMD - 5 - size=0x19 \x16\000-hsa_call_convention=\0\0
     2071             * AMD - 3 - size=0x1e, 00070004 major minor stepping AMD\0 AMDGPU\0 00000000
     2072             * AMD - 4 - size=8 random values 0x7ffXXXXXXXX
     2073             */
    20592074            noteBuf.reset(new cxbyte[sizeof(noteSectionData)]);
    20602075            ::memcpy(noteBuf.get(), noteSectionData, sizeof(noteSectionData));
Note: See TracChangeset for help on using the changeset viewer.