# ########################################################################
# Copyright (c) 2021 Advanced Micro Devices, Inc.
#
# 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.
#
# ########################################################################

---
include: rocsparse_common.yaml
include: known_bugs.yaml

Tests:
- name: gpsv_interleaved_batch_bad_arg
  category: pre_checkin
  function: gpsv_interleaved_batch_bad_arg
  precision: *single_double_precisions_complex_real

- name: gpsv_interleaved_batch
  category: quick
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [7, 11, 17, 32, 77, 142, 231]
  batch_count: [10, 45, 111, 213]
  batch_stride: [445]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: pre_checkin
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [0, 1, 2, 3, 256, 456, 1107, 1804, 3380]
  batch_count: [0, 1, 2, 3, 27, 299]
  batch_stride: [300]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: nightly
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [12057, 17283, 34905, 77043]
  batch_count: [12, 15, 21]
  batch_stride: [30]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: quick
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [2, 4, 8, 16, 32, 64]
  batch_count: [2, 4, 8, 16, 32, 64]
  batch_stride: [64]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: pre_checkin
  function: gpsv_interleaved_batch
  precision: *single_double_precisions
  M: [128, 256, 512, 1024]
  batch_count: [32, 45, 128]
  batch_stride: [150]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: nightly
  function: gpsv_interleaved_batch
  precision: *single_double_precisions
  M: [2048, 4096, 8192]
  batch_count: [256, 512, 1024]
  batch_stride: [1536]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: quick
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [476, 1725, 2301]
  batch_count: [33, 117, 318, 475]
  batch_stride: [500]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: pre_checkin
  function: gpsv_interleaved_batch
  precision: *single_double_precisions_complex_real
  M: [25, 34]
  batch_count: [2560, 45634, 110773]
  batch_stride: [110773]
  matrix: [rocsparse_matrix_random]

- name: gpsv_interleaved_batch
  category: nightly
  function: gpsv_interleaved_batch
  precision: *single_double_precisions
  M: [121]
  batch_count: [120574, 172835, 256000]
  batch_stride: [256000]
  matrix: [rocsparse_matrix_random]
