Saturday, January 11, 2020

ROCm with Ryzen 2200G

For reference, here is the output from running /opt/rocm/bin/rocminfo on Ryzen 2200G (with vega 8) after installing ROCm:


ROCk module is loaded
userx is member of video group
=====================   
HSA System Attributes   
=====================   
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:  18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE                             
System Endianness:       LITTLE                            

==========              
HSA Agents              
==========              
*******                 
Agent 1                 
*******                 
  Name:                    AMD Ryzen 3 2200G with Radeon Vega Graphics
  Marketing Name:          AMD Ryzen 3 2200G with Radeon Vega Graphics
  Vendor Name:             CPU                               
  Feature:                 None specified                    
  Profile:                 FULL_PROFILE                      
  Float Round Mode:        NEAR                              
  Max Queue Number:        0(0x0)                            
  Queue Min Size:          0(0x0)                            
  Queue Max Size:          0(0x0)                            
  Queue Type:              MULTI                             
  Node:                    0                                 
  Device Type:             CPU                               
  Cache Info:             
    L1:                      32(0x20) KB                       
  Chip ID:                 5597(0x15dd)                      
  Cacheline Size:          64(0x40)                          
  Max Clock Freq. (MHz):   3500                              
  BDFID:                   1792                              
  Internal Node ID:        0                                 
  Compute Unit:            4                                 
  SIMDs per CU:            4                                 
  Shader Engines:          1                                 
  Shader Arrs. per Eng.:   1                                 
  WatchPts on Addr. Ranges:4                                 
  Features:                None
  Pool Info:              
    Pool 1                  
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    16776832(0xfffe80) KB             
      Allocatable:             TRUE                              
      Alloc Granule:           4KB                               
      Alloc Alignment:         4KB                               
      Acessible by all:        TRUE                              
  ISA Info:               
    N/A                     
*******                 
Agent 2                 
*******                 
  Name:                    gfx902                            
  Marketing Name:          AMD Ryzen 3 2200G with Radeon Vega Graphics
  Vendor Name:             AMD                               
  Feature:                 KERNEL_DISPATCH                   
  Profile:                 FULL_PROFILE                      
  Float Round Mode:        NEAR                              
  Max Queue Number:        128(0x80)                         
  Queue Min Size:          4096(0x1000)                      
  Queue Max Size:          131072(0x20000)                   
  Queue Type:              MULTI                             
  Node:                    0                                 
  Device Type:             GPU                               
  Cache Info:             
    L1:                      16(0x10) KB                       
  Chip ID:                 5597(0x15dd)                      
  Cacheline Size:          64(0x40)                          
  Max Clock Freq. (MHz):   1100                              
  BDFID:                   1792                              
  Internal Node ID:        0                                 
  Compute Unit:            11                                
  SIMDs per CU:            4                                 
  Shader Engines:          1                                 
  Shader Arrs. per Eng.:   1                                 
  WatchPts on Addr. Ranges:4                                 
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      FALSE                             
  Wavefront Size:          64(0x40)                          
  Workgroup Max Size:      1024(0x400)                       
  Workgroup Max Size per Dimension:
    x                        1024(0x400)                       
    y                        1024(0x400)                       
    z                        1024(0x400)                       
  Max Waves Per CU:        160(0xa0)                         
  Max Work-item Per CU:    10240(0x2800)                     
  Grid Max Size:           4294967295(0xffffffff)            
  Grid Max Size per Dimension:
    x                        4294967295(0xffffffff)            
    y                        4294967295(0xffffffff)            
    z                        4294967295(0xffffffff)            
  Max fbarriers/Workgrp:   32                                
  Pool Info:              
    Pool 1                  
      Segment:                 GROUP                             
      Size:                    64(0x40) KB                       
      Allocatable:             FALSE                             
      Alloc Granule:           0KB                               
      Alloc Alignment:         0KB                               
      Acessible by all:        FALSE                             
  ISA Info:               
    ISA 1                   
      Name:                    amdgcn-amd-amdhsa--gfx902+xnack   
      Machine Models:          HSA_MACHINE_MODEL_LARGE           
      Profiles:                HSA_PROFILE_BASE                  
      Default Rounding Mode:   NEAR                              
      Default Rounding Mode:   NEAR                              
      Fast f16:                TRUE                              
      Workgroup Max Size:      1024(0x400)                       
      Workgroup Max Size per Dimension:
        x                        1024(0x400)                       
        y                        1024(0x400)                       
        z                        1024(0x400)                       
      Grid Max Size:           4294967295(0xffffffff)            
      Grid Max Size per Dimension:
        x                        4294967295(0xffffffff)            
        y                        4294967295(0xffffffff)            
        z                        4294967295(0xffffffff)            
      FBarrier Max Size:       32                                
*** Done ***