Changeset 3352 in CLRX


Ignore:
Timestamp:
Sep 11, 2017, 8:19:36 AM (15 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Add code to recognizing GFX901 in AmdCL2Binaries.

File:
1 edited

Legend:

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

    r3112 r3352  
    852852    { 18, GPUDeviceType::ELLESMERE },
    853853    { 19, GPUDeviceType::GFX804 },
    854     { 20, GPUDeviceType::GFX900 }
     854    { 20, GPUDeviceType::GFX900 },
     855    { 21, GPUDeviceType::GFX901 }
    855856};
    856857
     
    959960                    throw Exception("Unknown arch major");
    960961               
     962                archMinor = ULEV(content[2]);
     963                archStepping = ULEV(content[3]);
    961964                if (!knownGPUType)
    962965                {
     
    965968                            GPUArchitecture::GCN1_4);
    966969                    deviceType = getLowestGPUDeviceTypeFromArchitecture(arch);
     970                   
     971                    if (major == 9 && archMinor == 0 && archStepping == 1)
     972                        deviceType = GPUDeviceType::GFX901;
     973                   
    967974                    knownGPUType = true;
    968975                }
    969                 archMinor = ULEV(content[2]);
    970                 archStepping = ULEV(content[3]);
    971976            }
    972977            size_t align = (((namesz+descsz)&3)!=0) ? 4-((namesz+descsz)&3) : 0;
Note: See TracChangeset for help on using the changeset viewer.