Changeset 2495 in CLRX


Ignore:
Timestamp:
Oct 27, 2016, 7:28:26 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Checking arch major .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/DisasmAmdCL2.cpp

    r2494 r2495  
    148148   
    149149    input->deviceType = gpuCodeTable[index].deviceType;
     150    GPUArchitecture arch = getGPUArchitectureFromDeviceType(input->deviceType);
    150151    input->archMinor = 0;
    151152    input->archStepping = 0;
     
    198199                    const uint32_t* content = (const uint32_t*)
    199200                            (noteContent+offset+sizeof(Elf64_Nhdr) + 4);
     201                    uint32_t major = ULEV(content[1]);
     202                    if ((arch==GPUArchitecture::GCN1_2 && major!=8) ||
     203                        (arch==GPUArchitecture::GCN1_1 && major!=7))
     204                        throw Exception("Wrong arch major for GPU architecture");
    200205                    input->archMinor = ULEV(content[2]);
    201206                    input->archStepping = ULEV(content[3]);
Note: See TracChangeset for help on using the changeset viewer.