Skip to content

Commit

Permalink
[SYCLomatic] Fix test cases
Browse files Browse the repository at this point in the history
Csrsv only accept triangular matrix.

Signed-off-by: Jiang, Zhiwei <[email protected]>
  • Loading branch information
zhiweij1 committed Oct 26, 2023
1 parent bf529b7 commit e8b81f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/feature_case/cusparse/cusparse_2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void test_cusparseTcsrsv() {
cusparseMatDescr_t descrA;
cusparseCreateMatDescr(&descrA);
cusparseSetMatIndexBase(descrA, CUSPARSE_INDEX_BASE_ZERO);
cusparseSetMatType(descrA, CUSPARSE_MATRIX_TYPE_GENERAL);
cusparseSetMatType(descrA, CUSPARSE_MATRIX_TYPE_TRIANGULAR);

a_s_val.H2D();
a_d_val.H2D();
Expand Down
2 changes: 1 addition & 1 deletion help_function/src/sparse_utils_2_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void test_cusparseTcsrsv() {
std::shared_ptr<dpct::sparse::matrix_info> descrA;
descrA = std::make_shared<dpct::sparse::matrix_info>();
descrA->set_index_base(oneapi::mkl::index_base::zero);
descrA->set_matrix_type(dpct::sparse::matrix_info::matrix_type::ge);
descrA->set_matrix_type(dpct::sparse::matrix_info::matrix_type::tr);

a_s_val.H2D();
a_d_val.H2D();
Expand Down
2 changes: 1 addition & 1 deletion help_function/src/sparse_utils_2_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ void test_cusparseTcsrsv() {
std::shared_ptr<dpct::sparse::matrix_info> descrA;
descrA = std::make_shared<dpct::sparse::matrix_info>();
descrA->set_index_base(oneapi::mkl::index_base::zero);
descrA->set_matrix_type(dpct::sparse::matrix_info::matrix_type::ge);
descrA->set_matrix_type(dpct::sparse::matrix_info::matrix_type::tr);

a_s_val.H2D();
a_d_val.H2D();
Expand Down

0 comments on commit e8b81f2

Please sign in to comment.