Ignore:
Timestamp:
Sep 28, 2017, 12:06:39 PM (18 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Move tables with arch values (arch versions) to GPUId.

File:
1 edited

Legend:

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

    r3420 r3443  
    19171917    '-', 'h', 's', 'a', '-', 'g', 'l', 'o', 'b', 'a' };
    19181918
    1919 // AMDGPU architecture values for specific GPU device type for AMDOCL 2.0
    1920 static const AMDGPUArchValues amdGpuArchValuesTbl[] =
    1921 {
    1922     { 0, 0, 0 }, // GPUDeviceType::CAPE_VERDE
    1923     { 0, 0, 0 }, // GPUDeviceType::PITCAIRN
    1924     { 0, 0, 0 }, // GPUDeviceType::TAHITI
    1925     { 0, 0, 0 }, // GPUDeviceType::OLAND
    1926     { 7, 0, 0 }, // GPUDeviceType::BONAIRE
    1927     { 7, 0, 0 }, // GPUDeviceType::SPECTRE
    1928     { 7, 0, 0 }, // GPUDeviceType::SPOOKY
    1929     { 7, 0, 0 }, // GPUDeviceType::KALINDI
    1930     { 0, 0, 0 }, // GPUDeviceType::HAINAN
    1931     { 7, 0, 1 }, // GPUDeviceType::HAWAII
    1932     { 8, 0, 0 }, // GPUDeviceType::ICELAND
    1933     { 8, 0, 0 }, // GPUDeviceType::TONGA
    1934     { 7, 0, 0 }, // GPUDeviceType::MULLINS
    1935     { 8, 0, 4 }, // GPUDeviceType::FIJI
    1936     { 8, 0, 1 }, // GPUDeviceType::CARRIZO
    1937     { 8, 0, 1 }, // GPUDeviceType::DUMMY
    1938     { 8, 0, 4 }, // GPUDeviceType::GOOSE
    1939     { 8, 0, 4 }, // GPUDeviceType::HORSE
    1940     { 8, 1, 0 }, // GPUDeviceType::STONEY
    1941     { 8, 0, 4 }, // GPUDeviceType::ELLESMERE
    1942     { 8, 0, 4 }, // GPUDeviceType::BAFFIN
    1943     { 8, 0, 4 }, // GPUDeviceType::GFX804
    1944     { 9, 0, 0 }, // GPUDeviceType::GFX900
    1945     { 9, 0, 1 }  // GPUDeviceType::GFX901
    1946 };
    1947 
    19481919// helper to construct name for fixing allocation/deallocation bug ??
    19491920static CString constructName(size_t prefixSize, const char* prefix, const CString& name,
     
    20882059   
    20892060    const bool is16_3Ver = (input->driverVersion>=200406);
    2090     AMDGPUArchValues amdGpuArchValues = amdGpuArchValuesTbl[cxuint(input->deviceType)];
     2061    AMDGPUArchValues amdGpuArchValues = getGPUArchValues(input->deviceType,
     2062                                GPUArchValuesTable::AMDCL2);
    20912063    // fix for old drivers (1912.05)
    20922064    if (!is16_3Ver && input->deviceType==GPUDeviceType::FIJI)
Note: See TracChangeset for help on using the changeset viewer.