From f02bc17bbdbebeba8fdda1b3c2dee3fcba107357 Mon Sep 17 00:00:00 2001 From: "Victor A. P. Magri" <50467563+victorapm@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:07:13 -0400 Subject: [PATCH] Fix device build (#925) This PR removes a call to hypre_error_w_msg inside two GPU lambdas and fixes the device build. --- src/sstruct_ls/node_relax.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/sstruct_ls/node_relax.c b/src/sstruct_ls/node_relax.c index 7589631bd..bd2c6c92a 100644 --- a/src/sstruct_ls/node_relax.c +++ b/src/sstruct_ls/node_relax.c @@ -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; } -