Skip to content

Commit

Permalink
File: SRC/single/psgssvx3d.c
Browse files Browse the repository at this point in the history
Refactor psgssvx3d.c and include new dependencies

Files Changed:
- psgssvx3d.c: Refactored and added new dependencies

Detailed Changes:
- Added `superlu_upacked.h` as a new dependency
- Commented out `#include "superlu_summit.h"`
- Created and used `sLUgpu_Handle` for handling LU decomposition on GPU
- Added calls to `sCreateLUgpuHandle`, `psgstrf3d_LUv1`, `sCopyLUGPU2Host`, and `sDestroyLUgpuHandle` functions
  • Loading branch information
piyush314 committed Dec 20, 2023
1 parent aab7c09 commit 1202a22
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SRC/single/psgssvx3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ at the top-level directory.

#include "superlu_sdefs.h"
//#include "TRF3dV100/superlu_summit.h"
#include "superlu_summit.h"
// #include "superlu_summit.h"
#include "superlu_upacked.h"
// #include "psdistribute3d.h"

// #include "sssvx3dAux.c"
Expand Down Expand Up @@ -1213,6 +1214,14 @@ void psgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,

//TODO: sCreateLUgpuHandle,psgstrf3d_LUpackedInterface,sCopyLUGPU2Host,sDestroyLUgpuHandle haven't been created

sLUgpu_Handle sLUgpu = sCreateLUgpuHandle(nsupers, ldt, trf3Dpartition, LUstruct, grid3d,
SCT, options, stat, thresh, info);

/* call pdgstrf3d() in C++ code */
psgstrf3d_LUv1(sLUgpu);

sCopyLUGPU2Host(sLUgpu, LUstruct);
sDestroyLUgpuHandle(sLUgpu);

// print other stuff
// if (!grid3d->zscp.Iam)
Expand Down

0 comments on commit 1202a22

Please sign in to comment.