Changeset 2624 in CLRX


Ignore:
Timestamp:
Dec 8, 2016, 6:21:18 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmROCm: add next testcase (config tests).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/AsmROCmFormat.cpp

    r2623 r2624  
    6161    {
    6262        os << "  ROCmSymbol: name=" << symbol.symbolName << ", " <<
    63                 "offset=" << symbol.offset << "size=" << symbol.size << ", type=" <<
     63                "offset=" << symbol.offset << ", size=" << symbol.size << ", type=" <<
    6464                rocmRegionTypeNames[cxuint(symbol.type)] << "\n";
    6565        if (symbol.type == ROCmRegionType::DATA)
     
    212212        /* dump */
    213213        R"ffDXD(ROCmBinDump:
    214   ROCmSymbol: name=kxx1, offset=0size=0, type=fkernel
     214  ROCmSymbol: name=kxx1, offset=0, size=0, type=fkernel
    215215    Config:
    216216      amdCodeVersion=1.1
     
    248248      0000000000000000000000000000000000000000000000000000000000000000
    249249      0000000000000000000000000000000000000000000000000000000000000000
    250   ROCmSymbol: name=kxx2, offset=512size=0, type=kernel
     250  ROCmSymbol: name=kxx2, offset=512, size=0, type=kernel
    251251    Config:
    252252      amdCodeVersion=1.1
     
    316316        "",
    317317        true
     318    },
     319    {
     320        R"ffDXD(        .rocm
     321        .gpu Fiji
     322.kernel someKernelX
     323    .config
     324        .dims xz
     325        .call_convention 331
     326        .codeversion 1,0
     327        .machine 8,0,1,2
     328        .debug_private_segment_buffer_sgpr 10
     329        .debug_wavefront_private_segment_offset_sgpr 31
     330        .exceptions 0x3e
     331        .floatmode 0xc3
     332        .gds_segment_size 105
     333        .group_segment_align 128
     334        .kernarg_segment_align 64
     335        .kernarg_segment_size 228
     336        .kernel_code_entry_offset 256
     337        .kernel_code_prefetch_offset 1002
     338        .kernel_code_prefetch_size 13431
     339        .max_scratch_backing_memory 4212
     340        .pgmrsrc1 0xa0000000
     341        .pgmrsrc2 0xd00000
     342        .priority 2
     343        .private_elem_size 8
     344        .private_segment_align 32
     345        .reserved_sgpr_count 8
     346        .reserved_sgpr_first 12
     347        .reserved_vgpr_count 23
     348        .reserved_vgpr_first 26
     349        .runtime_loader_kernel_symbol 0x3eda1
     350        .scratchbuffer 2330
     351        .use_debug_enabled
     352        .use_flat_scratch_init
     353        .use_grid_workgroup_count xz
     354        .use_private_segment_buffer
     355        .use_ptr64
     356        .use_xnack_enabled
     357        .wavefront_size 256
     358        .workgroup_fbarrier_count 69
     359        .workgroup_group_segment_size 324
     360        .workitem_private_segment_size 33
     361        .vgprsnum 211
     362        .sgprsnum 85
     363.text
     364someKernelX:
     365        .skip 256
     366        s_endpgm)ffDXD",
     367        R"ffDXD(ROCmBinDump:
     368  ROCmSymbol: name=someKernelX, offset=0, size=0, type=kernel
     369    Config:
     370      amdCodeVersion=1.1
     371      amdMachine=8:0:1:2
     372      kernelCodeEntryOffset=256
     373      kernelCodePrefetchOffset=1002
     374      kernelCodePrefetchSize=13431
     375      maxScrachBackingMemorySize=4212
     376      computePgmRsrc1=0xa00c3ab4
     377      computePgmRsrc2=0x3ed01291
     378      enableSpgrRegisterFlags=0x2a1
     379      enableFeatureFlags=0x6c
     380      workitemPrivateSegmentSize=33
     381      workgroupGroupSegmentSize=324
     382      gdsSegmentSize=105
     383      kernargSegmentSize=228
     384      workgroupFbarrierCount=69
     385      wavefrontSgprCount=85
     386      workitemVgprCount=211
     387      reservedVgprFirst=26
     388      reservedVgprCount=23
     389      reservedSgprFirst=12
     390      reservedSgprCount=8
     391      debugWavefrontPrivateSegmentOffsetSgpr=31
     392      debugPrivateSegmentBufferSgpr=10
     393      kernargSegmentAlignment=6
     394      groupSegmentAlignment=7
     395      privateSegmentAlignment=5
     396      wavefrontSize=8
     397      callConvention=0x14b
     398      runtimeLoaderKernelSymbol=0x3eda1
     399      ControlDirective:
     400      0000000000000000000000000000000000000000000000000000000000000000
     401      0000000000000000000000000000000000000000000000000000000000000000
     402      0000000000000000000000000000000000000000000000000000000000000000
     403      0000000000000000000000000000000000000000000000000000000000000000
     404  Comment:
     405  nullptr
     406  Code:
     407  010000000000000008000000010002000001000000000000ea03000000000000
     408  77340000000000007410000000000000b43a0ca09112d03ea1026c0021000000
     409  4401000069000000e400000000000000450000005500d3001a0017000c000800
     410  1f000a00060705084b010000000000000000000000000000a1ed030000000000
     411  0000000000000000000000000000000000000000000000000000000000000000
     412  0000000000000000000000000000000000000000000000000000000000000000
     413  0000000000000000000000000000000000000000000000000000000000000000
     414  0000000000000000000000000000000000000000000000000000000000000000
     415  000081bf
     416)ffDXD",
     417        /* warning/errors */
     418        "",
     419        true
    318420    }
    319421};
     
    356458    return retVal;
    357459}
    358 
    359 
Note: See TracChangeset for help on using the changeset viewer.