File: rocsparse_regression.yaml

package info (click to toggle)
rocsparse 6.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,428 kB
  • sloc: cpp: 234,069; f90: 9,307; sh: 2,262; python: 1,939; makefile: 1,585; ansic: 440; xml: 26
file content (188 lines) | stat: -rw-r--r-- 7,963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# ########################################################################
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# ########################################################################

# Template used to process YAML from log files
---
include: rocsparse_common.yaml
#include: known_bugs.yaml

# This is a minimal smoke test of rocsparse functionality
# It will run at least a single small sized function test for all of the functions.
# Algorithm variations controlled by enums will be tested but those that are selected by size will not be
# exhaustive as very small sizes are only used

Definitions:

- &common
  M: 1
  N: 1
  K: 1
  storage: [rocsparse_storage_mode_sorted]
  direction: [rocsparse_direction_row]
  transB: [rocsparse_operation_none]
  diag: [rocsparse_diag_type_non_unit]
  apol: [rocsparse_analysis_policy_reuse]
  spol: [rocsparse_solve_policy_auto]
  baseA: [rocsparse_index_base_zero]
  matrix: [rocsparse_matrix_file_rocalution]
  matrix_type: [rocsparse_matrix_type_general]

- &alpha_beta
    - { alpha:   1.0, beta: -1.0, alphai:  1.0, betai: -0.5 }
    - { alpha:  -0.5, beta:  0.5, alphai: -0.5, betai:  1.0 }

Tests:

#################################################################################
# SpMV in CSR format                                                            #
#################################################################################
# We test this, as it is most important algorithm in rocsparse.                 #
# There is no special hardware requirements. It uses LDS and atomicAdd(fp32/64) #
# in some rare cases. Atomics are agent wide.                                   #
#################################################################################
- name: level2_spmv_csr_real
  category: pre_checkin
  function: spmv_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions
  <<: *common
  transA: [rocsparse_operation_none, rocsparse_operation_transpose]
  alpha_beta: *alpha_beta
  spmv_alg: [rocsparse_spmv_alg_csr_adaptive, rocsparse_spmv_alg_csr_stream]
  filename: [nos4]

- name: level2_spmv_csr_complex
  category: pre_checkin
  function: spmv_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions_complex
  <<: *common
  transA: [rocsparse_operation_none, rocsparse_operation_conjugate_transpose]
  alpha_beta: *alpha_beta
  spmv_alg: [rocsparse_spmv_alg_csr_stream, rocsparse_spmv_alg_csr_lrb]
  filename: [Chevron2]

#################################################################################
# SpSV in CSR format                                                            #
#################################################################################
# Algorithm has internal dependencies within the matrix and uses spin looping   #
# to wait until data dependencies have been resolved by other wavefronts / work #
# groups. The spin loop repeatedly querries the status by using atomic_load     #
# (relaxed) from global memory. Once a dependency has been resolved, it is      #
# stored in global memory using atomic_store (release). Atomics are agent wide. #
#################################################################################
- name: level2_spsv_csr_real
  category: pre_checkin
  function: spsv_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions
  <<: *common
  alpha_alphai: *alpha_beta
  uplo: [rocsparse_fill_mode_lower, rocsparse_fill_mode_upper]
  filename: [mac_econ_fwd500]

- name: level2_spsv_csr_complex
  category: pre_checkin
  function: spsv_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions_complex
  <<: *common
  alpha_alphai: *alpha_beta
  transA: [rocsparse_operation_conjugate_transpose]
  uplo: [rocsparse_fill_mode_lower, rocsparse_fill_mode_upper]
  filename: [Chevron2]

#################################################################################
# SpGEMM in CSR format                                                          #
#################################################################################
# This algorithm uses hash tables to merge two matrix rows. It makes extensive  #
# use of workgroup-wide atomicCAS in LDS.                                       #
#################################################################################
- name: extra_spgemm_csr_real
  category: pre_checkin
  function: spgemm_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions
  <<: *common
  N: [13, 523]
  alpha_beta: *alpha_beta
  filename: [nos4]

- name: extra_spgemm_csr_complex
  category: pre_checkin
  function: spgemm_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions_complex
  <<: *common
  N: [21, 719]
  alpha_beta: *alpha_beta
  filename: [Chevron2]

#################################################################################
# csrilusv in CSR format                                                        #
#################################################################################
# Combination of multiple spin-looping algorithms that depend on each other.    #
# Part of this algorithm spin-loops also on LDS.                                #
#################################################################################
- name: precond_csrilusv_csr_real
  category: pre_checkin
  function: csrilusv
  precision: *single_double_precisions
  <<: *common
  filename: [mac_econ_fwd500]

- name: precond_csrilusv_csr_complex
  category: pre_checkin
  function: csrilusv
  precision: *single_double_precisions_complex
  <<: *common
  filename: [Chevron2]

#################################################################################
# SpMM in CSR format                                                            #
#################################################################################
# Similar to csrmv, this algorithm is one of the most important ones in         #
# rocsparse. It uses LDS but there is nothing special in terms of hardware      #
# requirements.                                                                 #
#################################################################################
- name: level3_spmm_csr_real
  category: pre_checkin
  function: spmm_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions
  <<: *common
  N: [4, 19, 73]
  transA: [rocsparse_operation_none, rocsparse_operation_transpose]
  transB: [rocsparse_operation_none, rocsparse_operation_transpose]
  filename: [nos4]

- name: level3_spmm_csr_complex
  category: pre_checkin
  function: spmm_csr
  indextype: *i32i32_i64i32_i64i64
  precision: *single_double_precisions_complex
  <<: *common
  N: [3, 21]
  transA: [rocsparse_operation_none, rocsparse_operation_conjugate_transpose]
  transB: [rocsparse_operation_none, rocsparse_operation_conjugate_transpose]
  filename: [Chevron2]