|
| 1 | +# ################################################################################ |
| 2 | +# # |
| 3 | +# # Copyright (c) 2018-2022 Advanced Micro Devices, Inc. All rights reserved. |
| 4 | +# # |
| 5 | +# # MIT LICENSE: |
| 6 | +# # Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 7 | +# # this software and associated documentation files (the "Software"), to deal in |
| 8 | +# # the Software without restriction, including without limitation the rights to |
| 9 | +# # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 10 | +# # of the Software, and to permit persons to whom the Software is furnished to do |
| 11 | +# # so, subject to the following conditions: |
| 12 | +# # |
| 13 | +# # The above copyright notice and this permission notice shall be included in all |
| 14 | +# # copies or substantial portions of the Software. |
| 15 | +# # |
| 16 | +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +# # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +# # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +# # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +# # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +# # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +# # SOFTWARE. |
| 23 | +# # |
| 24 | +# ############################################################################### |
| 25 | + |
| 26 | +# Run test with testscript or binary: |
| 27 | +# |
| 28 | +# Using Testscript - |
| 29 | +# cd /opt/rocm/share/rocm-validation-suite/testscripts |
| 30 | +# sudo ./gpup.new.sh |
| 31 | +# |
| 32 | +# Using Binary - |
| 33 | +# cd /opt/rocm/share/rocm-validation-suite/conf |
| 34 | +# cd /opt/rocm/bin |
| 35 | +# sudo ./rvs -c /opt/rocm/share/rocm-validation-suite/conf/gpup_single.conf |
| 36 | +# |
| 37 | +# Note: Paths may vary with the ROCm version or ROCm installation path. |
| 38 | + |
| 39 | +# GPUP test #1 |
| 40 | +# |
| 41 | +# Preconditions: |
| 42 | +# all AMD compatible GPUs |
| 43 | +# all types of devices |
| 44 | +# all gpu properties, all io_links properties |
| 45 | +# |
| 46 | +# Expected result: |
| 47 | +# Test passes with displaying all properties values for any GPUs |
| 48 | + |
| 49 | +actions: |
| 50 | +- name: RVS-GPUP-TC1 |
| 51 | + device: all |
| 52 | + module: gpup |
| 53 | + properties: |
| 54 | + all: |
| 55 | + io_links-properties: |
| 56 | + all: |
| 57 | + |
| 58 | +# GPUP test #2 |
| 59 | +# |
| 60 | +# Preconditions: |
| 61 | +# all AMD compatible GPUs |
| 62 | +# all types of devices |
| 63 | +# no regular expressions |
| 64 | +# only a subset of gpu properties, only a subset of io_link properties |
| 65 | +# |
| 66 | +# Expected result: |
| 67 | +# Test passes with displaying subsets of properties and io_link properties values for any GPUs |
| 68 | + |
| 69 | +- name: RVS-GPUP-TC2 |
| 70 | + device: all |
| 71 | + module: gpup |
| 72 | + properties: |
| 73 | + simd_count: |
| 74 | + mem_banks_count: |
| 75 | + io_links_count: |
| 76 | + vendor_id: |
| 77 | + location_id: |
| 78 | + max_engine_clk_ccompute: |
| 79 | + io_links-properties: |
| 80 | + version_major: |
| 81 | + type: |
| 82 | + version_major: |
| 83 | + version_minor: |
| 84 | + node_from: |
| 85 | + node_to: |
| 86 | + recommended_transfer_size: |
| 87 | + flags: |
| 88 | + |
| 89 | +# GPUP test #3 |
| 90 | +# |
| 91 | +# Preconditions: |
| 92 | +# only a subset of AMD compatible GPUs (device filtering) |
| 93 | +# all types of devices |
| 94 | +# all gpu properties, all io_link properties |
| 95 | +# |
| 96 | +# Expected result: |
| 97 | +# Test passes with displaying all properties and io_link properties values for subset of GPUs |
| 98 | +# |
| 99 | +# Note: |
| 100 | +# Testing specific device, if device numbers are changed in system it should be changed in the test |
| 101 | + |
| 102 | +- name: RVS-GPUP-TC3 |
| 103 | + device: all |
| 104 | + module: gpup |
| 105 | + properties: |
| 106 | + all: |
| 107 | + io_links-properties: |
| 108 | + all: |
| 109 | + |
| 110 | +# GPUP test #4 |
| 111 | +# |
| 112 | +# Preconditions: |
| 113 | +# all AMD compatible GPUs |
| 114 | +# a given device type (deviceid filtering), this must be filled based on deviceid in sysfs/ ./rvs -g. |
| 115 | +# Default is 0=> no filtering |
| 116 | +# all gpu properties, all io_link properties |
| 117 | +# |
| 118 | +# Expected result: |
| 119 | +# Test passes with displaying all properties and io_link properties values for all GPUs and given deviceid |
| 120 | + |
| 121 | +- name: RVS-GPUP-TC4 |
| 122 | + device: all |
| 123 | + module: gpup |
| 124 | + deviceid: 0 |
| 125 | + properties: |
| 126 | + all: |
| 127 | + io_links-properties: |
| 128 | + all: |
| 129 | + |
| 130 | +# GPUP test #5 |
| 131 | +# |
| 132 | +# Preconditions: |
| 133 | +# only a subset of AMD compatible GPUs (device filtering) |
| 134 | +# a given device type (deviceid filtering) this must be filled based on deviceid in sysfs/ ./rvs -g |
| 135 | +# Default is 0=> no filtering |
| 136 | +# all gpu properties, all io_link properties |
| 137 | +# |
| 138 | +# Expected result: |
| 139 | +# Test passes with displaying all properties and io_link properties values for subset of GPUs and given deviceid |
| 140 | +# |
| 141 | +# Note: |
| 142 | +# Testing specific device, if device numbers are changed in system it should be changed in the test |
| 143 | + |
| 144 | +- name: RVS-GPUP-TC5 |
| 145 | + device: all |
| 146 | + module: gpup |
| 147 | + deviceid: 0 |
| 148 | + properties: |
| 149 | + all: |
| 150 | + io_links-properties: |
| 151 | + all: |
| 152 | + |
| 153 | +# GPUP test #6 |
| 154 | +# |
| 155 | +# Preconditions: |
| 156 | +# only a subset of AMD compatible GPUs (device filtering) |
| 157 | +# a given device type (deviceid filtering) this must be filled based on deviceid in sysfs/ ./rvs -g |
| 158 | +# Default is 0=> no filtering |
| 159 | +# only a subset of gpu properties, only a subset of io_link properties |
| 160 | +# |
| 161 | +# Expected result: |
| 162 | +# Test passes with displaying subset of properties and io_link properties values for subset of GPUs and given deviceid |
| 163 | +# |
| 164 | +# Note: |
| 165 | +# Testing specific device, if device numbers are changed in system it should be changed in the test |
| 166 | + |
| 167 | +- name: RVS-GPUP-TC6 |
| 168 | + device: all |
| 169 | + module: gpup |
| 170 | + deviceid: 0 |
| 171 | + properties: |
| 172 | + mem_banks_count: |
| 173 | + io_links-properties: |
| 174 | + version_major: |
0 commit comments