Skip to content

Commit

Permalink
Added magma test before the batch call. Currently set to abort if no …
Browse files Browse the repository at this point in the history
…magma
  • Loading branch information
WajihBK committed Oct 22, 2023
1 parent d6e1da2 commit a1d2cc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SRC/double/pdgssvx3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,7 @@ void pdgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,
}
else
{
#ifdef HAVE_MAGMA
BatchFactorize_Handle batch_ws = getBatchFactorizeWorkspace(
nsupers, ldt, trf3Dpartition, LUstruct, grid3d, options, stat, info
);
Expand All @@ -1274,6 +1275,10 @@ void pdgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,

copyGPULUDataToHost(batch_ws, LUstruct, grid3d, SCT, options, stat);
freeBatchFactorizeWorkspace(batch_ws);
#else
// TODO: How should we handle this?
ABORT("Fatal error: Batched mode requires magma support!\n");
#endif
}

// print other stuff
Expand Down

0 comments on commit a1d2cc1

Please sign in to comment.