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
|
* Invert intra-nodal coupling
|
||||||
*----------------------------------------------*/
|
*----------------------------------------------*/
|
||||||
hypre_gselim(A_loc, x_loc, nvars, err);
|
hypre_gselim(A_loc, x_loc, nvars, err);
|
||||||
if (err)
|
(void) err;
|
||||||
{
|
/* TODO (VPM): need a way to check error codes on device */
|
||||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "Error in gselim!\n");
|
|
||||||
}
|
|
||||||
/*------------------------------------------------
|
/*------------------------------------------------
|
||||||
* Copy solution from local storage.
|
* Copy solution from local storage.
|
||||||
*----------------------------------------------*/
|
*----------------------------------------------*/
|
||||||
@ -971,10 +970,8 @@ hypre_NodeRelax( void *relax_vdata,
|
|||||||
* Invert intra-nodal coupling
|
* Invert intra-nodal coupling
|
||||||
*----------------------------------------------*/
|
*----------------------------------------------*/
|
||||||
hypre_gselim(A_loc, x_loc, nvars, err);
|
hypre_gselim(A_loc, x_loc, nvars, err);
|
||||||
if (err)
|
(void) err;
|
||||||
{
|
|
||||||
hypre_error_w_msg(HYPRE_ERROR_GENERIC, "Error in gselim!\n");
|
|
||||||
}
|
|
||||||
/*------------------------------------------------
|
/*------------------------------------------------
|
||||||
* Copy solution from local storage.
|
* Copy solution from local storage.
|
||||||
*----------------------------------------------*/
|
*----------------------------------------------*/
|
||||||
@ -1170,4 +1167,3 @@ hypre_NodeRelaxSetTempVec( void *relax_vdata,
|
|||||||
|
|
||||||
return hypre_error_flag;
|
return hypre_error_flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user