From bc63aaa357a622b8cf053bf659b758cd62a5c041 Mon Sep 17 00:00:00 2001 From: Nico <31079890+ntrost57@users.noreply.github.com> Date: Mon, 15 May 2023 17:56:45 +0200 Subject: [PATCH] adjust tests for single complex precision rounding errors found on navi21 windows machine (#472) (#301) Co-authored-by: James Sandham <33790278+jsandham@users.noreply.github.com> Co-authored-by: jsandham --- clients/tests/test_csrmv.yaml | 19 ++++++++++++++++--- clients/tests/test_spmv_coo.yaml | 20 +++++++++++++++++--- clients/tests/test_spmv_ell.yaml | 18 +++++++++++++++--- 3 files changed, 48 insertions(+), 9 deletions(-) diff --git a/clients/tests/test_csrmv.yaml b/clients/tests/test_csrmv.yaml index f473e114..bfbdcb86 100644 --- a/clients/tests/test_csrmv.yaml +++ b/clients/tests/test_csrmv.yaml @@ -1,5 +1,5 @@ # ######################################################################## -# Copyright (C) 2019-2022 Advanced Micro Devices, Inc. All rights Reserved. +# Copyright (C) 2019-2023 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 @@ -235,8 +235,21 @@ Tests: matrix: [rocsparse_matrix_file_rocalution] matrix_type: [rocsparse_matrix_type_general] spmv_alg: [rocsparse_spmv_alg_csr_adaptive, rocsparse_spmv_alg_csr_stream] - filename: [rma10, - qc2534] + filename: [qc2534] + +- name: csrmv_file + category: quick + function: csrmv + precision: *double_only_precisions_complex + M: 1 + N: 1 + alpha_beta: *alpha_beta_range_quick + transA: [rocsparse_operation_none, rocsparse_operation_transpose] + baseA: [rocsparse_index_base_zero] + matrix: [rocsparse_matrix_file_rocalution] + matrix_type: [rocsparse_matrix_type_general] + spmv_alg: [rocsparse_spmv_alg_csr_adaptive, rocsparse_spmv_alg_csr_stream] + filename: [rma10] - name: csrmv_file category: pre_checkin diff --git a/clients/tests/test_spmv_coo.yaml b/clients/tests/test_spmv_coo.yaml index a9bd04ab..faaa6bfe 100644 --- a/clients/tests/test_spmv_coo.yaml +++ b/clients/tests/test_spmv_coo.yaml @@ -1,5 +1,5 @@ # ######################################################################## -# Copyright (C) 2020-2022 Advanced Micro Devices, Inc. All rights Reserved. +# Copyright (C) 2020-2023 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 @@ -194,8 +194,22 @@ Tests: matrix: [rocsparse_matrix_file_rocalution] storage: [rocsparse_storage_mode_sorted] spmv_alg: [rocsparse_spmv_alg_coo, rocsparse_spmv_alg_coo_atomic] - filename: [mplate, - Chevron3] + filename: [Chevron3] + +- name: spmv_coo_file + category: pre_checkin + function: spmv_coo + indextype: *i32_i64 + precision: *double_only_precisions_complex + M: 1 + N: 1 + alpha_beta: *alpha_beta_range_checkin + transA: [rocsparse_operation_none, rocsparse_operation_conjugate_transpose] + baseA: [rocsparse_index_base_one] + matrix: [rocsparse_matrix_file_rocalution] + storage: [rocsparse_storage_mode_sorted] + spmv_alg: [rocsparse_spmv_alg_coo, rocsparse_spmv_alg_coo_atomic] + filename: [mplate] - name: spmv_coo_file category: nightly diff --git a/clients/tests/test_spmv_ell.yaml b/clients/tests/test_spmv_ell.yaml index b943daa7..66445eb1 100644 --- a/clients/tests/test_spmv_ell.yaml +++ b/clients/tests/test_spmv_ell.yaml @@ -1,5 +1,5 @@ # ######################################################################## -# Copyright (C) 2021-2022 Advanced Micro Devices, Inc. All rights Reserved. +# Copyright (C) 2021-2023 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 @@ -170,8 +170,20 @@ Tests: transA: [rocsparse_operation_none, rocsparse_operation_transpose] baseA: [rocsparse_index_base_one] matrix: [rocsparse_matrix_file_rocalution] - filename: [mplate, - Chevron3] + filename: [Chevron3] + +- name: spmv_ell_file + category: pre_checkin + function: spmv_ell + indextype: *i32_i64 + precision: *double_only_precisions_complex + M: 1 + N: 1 + alpha_beta: *alpha_beta_range_checkin + transA: [rocsparse_operation_none, rocsparse_operation_transpose] + baseA: [rocsparse_index_base_one] + matrix: [rocsparse_matrix_file_rocalution] + filename: [mplate] - name: spmv_ell_file category: nightly