Skip to content

Commit

Permalink
fix zdotu argument passing in utest_ext on windows (#4691)
Browse files Browse the repository at this point in the history
* fix passing of results on windows
  • Loading branch information
martin-frbg authored May 13, 2024
1 parent 1ab9f50 commit b45a78c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions utest/test_extensions/test_cgemv_t.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ static void matrix_vector_product(blasint n, blasint m, blasint lda, blasint inc

for (i = 0; i < n * inc_x; i+= inc_x)
{
#ifdef RETURN_BY_STACK
BLASFUNC(cdotu)(&result, &lda, a_ptr, &one, x_ptr, &inc_x);
#else
result = BLASFUNC(cdotu)(&lda, a_ptr, &one, x_ptr, &inc_x);
#endif
x_res[0] = CREAL(result);
x_res[1] = CIMAG(result);
a_ptr += lda * 2;
Expand Down
8 changes: 6 additions & 2 deletions utest/test_extensions/test_zgemv_t.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ static void matrix_vector_product(blasint n, blasint m, blasint lda, blasint inc

for (i = 0; i < n * inc_x; i += inc_x)
{
result = BLASFUNC(zdotu)(&lda, a_ptr, &one, x_ptr, &inc_x);
x_res[0] = CREAL(result);
#ifdef RETURN_BY_STACK
BLASFUNC(zdotu)(&result, &lda, a_ptr, &one, x_ptr, &inc_x);
#else
result = BLASFUNC(zdotu)(&lda, a_ptr, &one, x_ptr, &inc_x);
#endif
x_res[0] = CREAL(result);
x_res[1] = CIMAG(result);
a_ptr += lda * 2;
x_res += 2 * inc_x;
Expand Down

0 comments on commit b45a78c

Please sign in to comment.