Ignore:
Timestamp:
Dec 1, 2016, 11:08:20 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmROCm: tentative version of code to setup kernel configuration.
Fixed setting alignments and wavefront size (power of 2). Add extra symbols to output.
GPUId: Add AMDGPUArchValues to GPUId.

File:
1 edited

Legend:

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

    r2600 r2604  
    198198  'A', 'M', 'D', 0, 'A', 'M', 'D', 'G', 'P', 'U', 0 };
    199199
    200 struct AMDGPUArchValues
    201 {
    202     uint32_t major;
    203     uint32_t minor;
    204     uint32_t stepping;
    205 };
    206 
    207200// section index for symbol binding
    208201static const uint16_t mainBuiltinSectionTable[] =
     
    224217};
    225218
    226 static const AMDGPUArchValues amdGpuArchValuesTbl[] =
     219namespace CLRX
     220{
     221extern const AMDGPUArchValues rocmAmdGpuArchValuesTbl[];
     222}
     223
     224const AMDGPUArchValues CLRX::rocmAmdGpuArchValuesTbl[] =
    227225{
    228226    { 0, 0, 0 }, // GPUDeviceType::CAPE_VERDE
     
    252250             Array<cxbyte>* aPtr) const
    253251{
    254     AMDGPUArchValues amdGpuArchValues = amdGpuArchValuesTbl[cxuint(input->deviceType)];
     252    AMDGPUArchValues amdGpuArchValues = rocmAmdGpuArchValuesTbl[cxuint(input->deviceType)];
    255253    if (input->archMinor!=UINT32_MAX)
    256254        amdGpuArchValues.minor = input->archMinor;
Note: See TracChangeset for help on using the changeset viewer.