# ########################################################################
# Copyright (c) 2019-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: csr2csc_bad_arg
  category: pre_checkin
  function: csr2csc_bad_arg
  precision: *single_double_precisions_complex_real

- name: csr2csc
  category: quick
  function: csr2csc
  precision: *single_double_precisions_complex_real
  M: [10]
  N: [33]
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_zero]

- name: csr2csc
  category: quick
  function: csr2csc
  precision: *single_double_precisions_complex_real
  M: [10, 872]
  N: [33, 623]
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_random]

- name: csr2csc
  category: pre_checkin
  function: csr2csc
  precision: *single_double_precisions_complex_real
  M: [-1, 0, 500, 1000]
  N: [-3, 0, 242, 1000]
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_random]

- name: csr2csc
  category: nightly
  function: csr2csc
  precision: *single_double_precisions_complex_real
  M: [27428, 941291, 1105637]
  N: [18582, 571938, 995827]
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_random]

- name: csr2csc_file
  category: quick
  function: csr2csc
  precision: *single_double_precisions
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [mac_econ_fwd500,
             nos2,
             nos4,
             nos6,
             scircuit]

- name: csr2csc_file
  category: pre_checkin
  function: csr2csc
  precision: *single_double_precisions
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [rma10,
             mc2depi,
             ASIC_320k,
             nos1,
             nos3,
             nos5,
             nos7]

- name: csr2csc_file
  category: nightly
  function: csr2csc
  precision: *single_double_precisions
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [bibd_22_8,
             bmwcra_1,
             amazon0312,
             Chebyshev4,
             sme3Dc,
             webbase-1M,
             shipsec1]

- name: csr2csc_file
  category: quick
  function: csr2csc
  precision: *single_double_precisions_complex
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [qc2534,
             Chevron2]

- name: csr2csc_file
  category: pre_checkin
  function: csr2csc
  precision: *single_double_precisions_complex
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [mplate,
             Chevron3]

- name: csr2csc_file
  category: nightly
  function: csr2csc
  precision: *single_double_precisions_complex
  M: 1
  N: 1
  action: [rocsparse_action_numeric, rocsparse_action_symbolic]
  baseA: [rocsparse_index_base_zero, rocsparse_index_base_one]
  matrix: [rocsparse_matrix_file_rocalution]
  filename: [Chevron4]
