Skip to content

Commit

Permalink
Revert "use correct type in cg norm calc"
Browse files Browse the repository at this point in the history
This reverts commit c10b3fe.
  • Loading branch information
bodono committed Jan 7, 2022
1 parent c10b3fe commit 77c86c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linsys/gpu/indirect/private.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static scs_float cg_gpu_norm(cublasHandle_t cublas_handle, scs_float *r,
scs_float nrm;
CUBLAS(nrm2)(cublas_handle, n, r, 1, &nrm);
#else
blas_int idx;
scs_int idx;
scs_float nrm;
CUBLASI(amax)(cublas_handle, n, r, 1, &idx);
/* NOTE: we take idx -1 here since the routine above returns Fortran idxs */
Expand Down

0 comments on commit 77c86c8

Please sign in to comment.