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:
parent
f478498295
commit
f02bc17bbd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user