We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd2f81 commit f9d8629Copy full SHA for f9d8629
help_function/src/util_matrix_mem_copy_test.cpp
@@ -77,7 +77,7 @@ void matrix_mem_copy_test_2() {
77
dpct::matrix_mem_copy(host_d, devPtrA, M - 1 /*to_ld*/, M /*from_ld*/,
78
M - 1 /*rows*/, N /*cols*/);
79
80
- for (int i = 0; i < M*N; i++) {
+ for (int i = 0; i < (M-1)*N; i++) {
81
if (fabs(host_d[i] - host_e[i]) > 1e-5) {
82
printf("matrix_mem_copy_test_2.2 failed\n");
83
exit(-1);
0 commit comments