Skip to content

Commit 2ae2707

Browse files
committed
Update and fix
Signed-off-by: Jiang, Zhiwei <[email protected]>
1 parent 51a7928 commit 2ae2707

File tree

8 files changed

+31
-30
lines changed

8 files changed

+31
-30
lines changed

clang/include/clang/DPCT/DPCTOptions.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ DPCT_ENUM_OPTION(
632632
"syclcompat", int(clang::dpct::ExplicitNamespace::EN_SYCLCompat),
633633
"DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Generate code with syclcompat:: namespace.", false)),
634634
llvm::cl::desc("Define the namespaces to use explicitly in generated "
635-
"code. The <value> is a comma\n"
635+
"code. The <value> is a comma\n"
636636
"separated list. Default: dpct/syclcompat, sycl.\n"
637637
"Possible values are:"),
638638
llvm::cl::CommaSeparated, llvm::cl::value_desc("value"),
@@ -1019,7 +1019,7 @@ DPCT_FLAG_OPTION(
10191019
"use-syclcompat",
10201020
llvm::cl::desc(
10211021
"DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Use SYCLcompat header-only library (syclcompat:: namespace) to assist "
1022-
"the migration of input source code. \nDefault: off.\n"),
1022+
"the migration of input source code.\nDefault: off.\n"),
10231023
llvm::cl::cat(CtHelpCatCodeGen), llvm::cl::cat(CtHelpCatAll))
10241024

10251025
DPCT_FLAG_OPTION(

clang/lib/DPCT/RulesMathLib/APINamesCUSPARSE.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ ASSIGNABLE_FACTORY(ASSIGN_FACTORY_ENTRY("cusparseZcsrsv2_bufferSizeExt",
502502
ASSIGNABLE_FACTORY(CALL_FACTORY_ENTRY(
503503
"cusparseCsrsv_analysisEx",
504504
CALL(MapNames::getLibraryHelperNamespace() + "sparse::optimize_csrsv",
505-
MEMBER_CALL(ARG(0), true, "get_queue"), ARG(1), ARG(2), ARG(4), ARG(5),
505+
MEMBER_CALL(ARG(0), true, "get_queue"), ARG(1), ARG(2), ARG(3), ARG(4), ARG(5),
506506
ARG(6), ARG(7), ARG(8), ARG(9))))
507507
ASSIGNABLE_FACTORY(CALL_FACTORY_ENTRY(
508508
"cusparseCsrsv_solveEx",

clang/test/dpct/asm/ld.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// clang-format off
88
#include <cuda_runtime.h>
99
#include <cuda_bf16.h>
10+
#include <cuda_fp16.h>
1011
#include <stdint.h>
1112
#include <stdio.h>
1213

clang/test/dpct/cusparse-usm.cu

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int foo(int aaaaa){
7171
//CHECK-NEXT: /*
7272
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
7373
//CHECK-NEXT: */
74-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), (oneapi::mkl::transpose)aaaaa, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
74+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), (oneapi::mkl::transpose)aaaaa, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
7575
cusparseCreate(&handle);
7676
cusparseCreateMatDescr(&descrA);
7777
cusparseSetMatType(descrA, (cusparseMatrixType_t)aaaaa);
@@ -83,52 +83,52 @@ int foo(int aaaaa){
8383
//CHECK: /*
8484
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
8585
//CHECK-NEXT: */
86-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
86+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
8787
cusparseZcsrmv(handle, transA, m, n, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
8888

8989
//CHECK: /*
9090
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
9191
//CHECK-NEXT: */
92-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
92+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
9393
cusparseDcsrmv_mp(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
9494

9595
//CHECK: /*
9696
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
9797
//CHECK-NEXT: */
98-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
98+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
9999
cusparseZcsrmv_mp(handle, transA, m, n, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, &beta_Z, y_Z);
100100

101101
//CHECK: /*
102102
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general sparse matrix type. You may need to adjust the code.
103103
//CHECK-NEXT: */
104-
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, m, n, k, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
104+
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, m, n, k, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
105105
cusparseDcsrmm(handle, transA, m, n, k, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
106106

107107
//CHECK: /*
108108
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general sparse matrix type. You may need to adjust the code.
109109
//CHECK-NEXT: */
110-
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, m, n, k, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
110+
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, m, n, k, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
111111
cusparseZcsrmm(handle, transA, m, n, k, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
112112

113113
cusparseOperation_t transB = CUSPARSE_OPERATION_NON_TRANSPOSE;
114114
//CHECK: /*
115115
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general sparse matrix type. You may need to adjust the code.
116116
//CHECK-NEXT: */
117-
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, transB, m, n, k, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
117+
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, transB, m, n, k, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
118118
cusparseDcsrmm2(handle, transA, transB, m, n, k, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, ldb, &beta_value, y, ldc);
119119

120120
//CHECK: /*
121121
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general sparse matrix type. You may need to adjust the code.
122122
//CHECK-NEXT: */
123-
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, transB, m, n, k, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
123+
//CHECK-NEXT: dpct::sparse::csrmm(handle->get_queue(), transA, transB, m, n, k, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
124124
cusparseZcsrmm2(handle, transA, transB, m, n, k, nnz, &alpha_Z, descrA, csrValA_Z, csrRowPtrA, csrColIndA, x_Z, ldb, &beta_Z, y_Z, ldc);
125125

126126
size_t ws_size;
127127
void *ws;
128128
//CHECK: int alg = 0;
129129
//CHECK-NEXT: alg = 1;
130130
//CHECK-NEXT: ws_size = 0;
131-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, dpct::library_data_t::real_double, descrA, csrValA, dpct::library_data_t::real_double, csrRowPtrA, csrColIndA, x, dpct::library_data_t::real_double, &beta_value, dpct::library_data_t::real_double, y, dpct::library_data_t::real_double);
131+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, dpct::library_data_t::real_double, descrA, csrValA, dpct::library_data_t::real_double, csrRowPtrA, csrColIndA, x, dpct::library_data_t::real_double, &beta_value, dpct::library_data_t::real_double, y, dpct::library_data_t::real_double);
132132
cusparseAlgMode_t alg = CUSPARSE_ALG0;
133133
alg = CUSPARSE_ALG1;
134134
cusparseCsrmvEx_bufferSize(handle, alg, transA, m, n, nnz, &alpha, CUDA_R_64F, descrA, csrValA, CUDA_R_64F, csrRowPtrA, csrColIndA, x, CUDA_R_64F, &beta_value, CUDA_R_64F, y, CUDA_R_64F, CUDA_R_64F, &ws_size);
@@ -140,19 +140,19 @@ int foo(int aaaaa){
140140
//CHECK: /*
141141
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
142142
//CHECK-NEXT: */
143-
//CHECK-NEXT: if(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
143+
//CHECK-NEXT: if(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
144144
if(status = cusparseDcsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y)){}
145145

146146
//CHECK: /*
147147
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
148148
//CHECK-NEXT: */
149-
//CHECK-NEXT: for(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));;){}
149+
//CHECK-NEXT: for(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));;){}
150150
for(status = cusparseDcsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);;){}
151151

152152
//CHECK: /*
153153
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
154154
//CHECK-NEXT: */
155-
//CHECK-NEXT: switch(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
155+
//CHECK-NEXT: switch(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
156156
switch(status = cusparseDcsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y)){}
157157

158158
//CHECK: std::shared_ptr<dpct::sparse::optimize_info> info;
@@ -179,7 +179,7 @@ int foo(int aaaaa){
179179
//CHECK-NEXT: /*
180180
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
181181
//CHECK-NEXT: */
182-
//CHECK-NEXT: return DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));
182+
//CHECK-NEXT: return DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));
183183
//CHECK-NEXT: }
184184
int foo(cusparseMatDescr_t descrB){
185185
return cusparseDcsrmv(handle, transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);

clang/test/dpct/cusparse.cu

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int main(){
8080
//CHECK-NEXT: /*
8181
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
8282
//CHECK-NEXT: */
83-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), (oneapi::mkl::transpose)zero, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
83+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), (oneapi::mkl::transpose)zero, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
8484
cusparseCreateMatDescr(&descrA);
8585
cusparseSetMatType(descrA, CUSPARSE_MATRIX_TYPE_GENERAL);
8686
cusparseSetMatIndexBase(descrA, CUSPARSE_INDEX_BASE_ZERO);
@@ -91,19 +91,19 @@ int main(){
9191
//CHECK: /*
9292
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
9393
//CHECK-NEXT: */
94-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
94+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
9595
cusparseCcsrmv(handle, transA, m, n, nnz, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
9696

9797
//CHECK: /*
9898
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
9999
//CHECK-NEXT: */
100-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
100+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
101101
cusparseScsrmv_mp(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
102102

103103
//CHECK: /*
104104
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
105105
//CHECK-NEXT: */
106-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
106+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
107107
cusparseCcsrmv_mp(handle, transA, m, n, nnz, &alpha_C, descrA, csrValA_C, csrRowPtrA, csrColIndA, x_C, &beta_C, y_C);
108108

109109
//CHECK: /*
@@ -137,19 +137,19 @@ int main(){
137137
//CHECK: /*
138138
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
139139
//CHECK-NEXT: */
140-
//CHECK-NEXT: if(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
140+
//CHECK-NEXT: if(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
141141
if(status = cusparseScsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y)){}
142142

143143
//CHECK: /*
144144
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
145145
//CHECK-NEXT: */
146-
//CHECK-NEXT: for(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));;){}
146+
//CHECK-NEXT: for(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));;){}
147147
for(status = cusparseScsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);;){}
148148

149149
//CHECK: /*
150150
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
151151
//CHECK-NEXT: */
152-
//CHECK-NEXT: switch(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
152+
//CHECK-NEXT: switch(status = DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y))){}
153153
switch(status = cusparseScsrmv(handle, transA, m, n, nnz, &alpha, descrA, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y)){}
154154

155155
//CHECK: std::shared_ptr<dpct::sparse::optimize_info> info;
@@ -176,7 +176,7 @@ int main(){
176176
//CHECK-NEXT: /*
177177
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
178178
//CHECK-NEXT: */
179-
//CHECK-NEXT: return DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));
179+
//CHECK-NEXT: return DPCT_CHECK_ERROR(dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y));
180180
//CHECK-NEXT:}
181181
int foo(cusparseMatDescr_t descrB){
182182
return cusparseScsrmv(handle, transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
@@ -186,7 +186,7 @@ int foo(cusparseMatDescr_t descrB){
186186
//CHECK-NEXT: /*
187187
//CHECK-NEXT: DPCT1045:{{[0-9]+}}: Migration is only supported for this API for the general/symmetric/triangular sparse matrix type. You may need to adjust the code.
188188
//CHECK-NEXT: */
189-
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
189+
//CHECK-NEXT: dpct::sparse::csrmv(handle->get_queue(), transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);
190190
//CHECK-NEXT:}
191191
void foo2(cusparseMatDescr_t descrB){
192192
cusparseScsrmv(handle, transA, m, n, nnz, &alpha, descrB, csrValA, csrRowPtrA, csrColIndA, x, &beta_value, y);

clang/test/dpct/help_option_check/lin/help_all.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ All DPCT options
180180
=sycl - Generate code with sycl:: namespace. Cannot be used with cl or sycl-math values.
181181
=sycl-math - Generate code with sycl:: namespace, applied only for SYCL math functions.
182182
Cannot be used with cl or sycl values.
183-
=syclcompat - Generate code with syclcompat:: namespace.
184-
--use-syclcompat - Use SYCLcompat header-only library (syclcompat:: namespace) to assist the migration of input source code.
183+
=syclcompat - DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Generate code with syclcompat:: namespace.
184+
--use-syclcompat - DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Use SYCLcompat header-only library (syclcompat:: namespace) to assist the migration of input source code.
185185
Default: off.
186186
--usm-level=<value> - Set the Unified Shared Memory (USM) level to use in source code generation.
187187
=none - Uses helper functions from DPCT header files for memory management migration.

clang/test/dpct/help_option_check/win/help_all.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ All DPCT options
179179
=sycl - Generate code with sycl:: namespace. Cannot be used with cl or sycl-math values.
180180
=sycl-math - Generate code with sycl:: namespace, applied only for SYCL math functions.
181181
Cannot be used with cl or sycl values.
182-
=syclcompat - Generate code with syclcompat:: namespace.
183-
--use-syclcompat - Use SYCLcompat header-only library (syclcompat:: namespace) to assist the migration of input source code.
182+
=syclcompat - DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Generate code with syclcompat:: namespace.
183+
--use-syclcompat - DEPRECATED (Intel(R) DPC++ Compiler 2025.3 is deprecating SYCLCompat and will remove it in next release). Use SYCLcompat header-only library (syclcompat:: namespace) to assist the migration of input source code.
184184
Default: off.
185185
--usm-level=<value> - Set the Unified Shared Memory (USM) level to use in source code generation.
186186
=none - Uses helper functions from DPCT header files for memory management migration.

0 commit comments

Comments
 (0)