Fix device build (#925)

This PR removes a call to hypre_error_w_msg inside two GPU lambdas and fixes the device build.
This commit is contained in:
Victor A. P. Magri 2023-06-14 11:07:13 -04:00 committed by GitHub
parent f478498295
commit f02bc17bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -764,10 +764,9 @@ hypre_NodeRelax( void *relax_vdata,
* Invert intra-nodal coupling
*----------------------------------------------*/
hypre_gselim(A_loc, x_loc, nvars, err);
if (err)
{
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "Error in gselim!\n");
}
(void) err;
/* TODO (VPM): need a way to check error codes on device */
/*------------------------------------------------
* Copy solution from local storage.
*----------------------------------------------*/
@ -971,10 +970,8 @@ hypre_NodeRelax( void *relax_vdata,
* Invert intra-nodal coupling
*----------------------------------------------*/
hypre_gselim(A_loc, x_loc, nvars, err);
if (err)
{
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "Error in gselim!\n");
}
(void) err;
/*------------------------------------------------
* Copy solution from local storage.
*----------------------------------------------*/
@ -1170,4 +1167,3 @@ hypre_NodeRelaxSetTempVec( void *relax_vdata,
return hypre_error_flag;
}