29#define MAX_NGPU_STREAMS 32
32void check(gpuError_t result,
char const *
const func,
const char *
const file,
int const line)
36 fprintf(stderr,
"GPU error at file %s: line %d code=(%s) \"%s\" \n",
37 file, line, gpuGetErrorString(result), func);
44#define checkGPUErrors(val) check ( (val), #val, __FILE__, __LINE__ )
111 double ScatterMOPCounter;
112 double ScatterMOPTimer;
113 double GemmFLOPCounter;
114 double GemmFLOPTimer;
118 double tHost_PCIeH2D;
119 double tHost_PCIeD2H;
123 gpuEvent_t *GemmStart, *GemmEnd, *ScatterEnd;
124 gpuEvent_t *ePCIeH2D;
125 gpuEvent_t *ePCIeD2H_Start;
126 gpuEvent_t *ePCIeD2H_End;
164 int_t *gIperm_c_supno,
171 double thresh,
SCT_t *SCT,
int tag_ub,
208 int_t Remain_lbuf_send_size,
static void check(gpuError_t result, char const *const func, const char *const file, int const line)
Definition: dlustruct_gpu.h:32
int dsendSCUdataHost2GPU(int_t streamId, int_t *lsub, int_t *usub, double *bigU, int_t bigu_send_size, int_t Remain_lbuf_send_size, dsluGPU_t *sluGPU, HyP_t *HyP)
int dfree_LUstruct_gpu(dsluGPU_t *sluGPU, SuperLUStat_t *)
int dsparseTreeFactor_ASYNC_GPU(sForest_t *sforest, commRequests_t **comReqss, dscuBufs_t *scuBufs, packLUInfo_t *packLUInfo, msgs_t **msgss, dLUValSubBuf_t **LUvsbs, ddiagFactBufs_t **dFBufs, factStat_t *factStat, factNodelists_t *fNlists, gEtreeInfo_t *gEtreeInfo, superlu_dist_options_t *options, int_t *gIperm_c_supno, int ldt, dsluGPU_t *sluGPU, d2Hreduce_t *d2Hred, HyP_t *HyP, dLUstruct_t *LUstruct, gridinfo3d_t *grid3d, SuperLUStat_t *stat, double thresh, SCT_t *SCT, int tag_ub, int *info)
int dreduceGPUlu(int last_flag, d2Hreduce_t *d2Hred, dsluGPU_t *sluGPU, SCT_t *SCT, gridinfo_t *grid, dLUstruct_t *LUstruct)
void dCopyLUToGPU3D(int *isNodeInMyGrid, dLocalLU_t *A_host, dsluGPU_t *sluGPU, Glu_persist_t *Glu_persist, int_t n, gridinfo3d_t *grid3d, int_t buffer_size, int_t bigu_size, int_t ldt, SuperLUStat_t *)
int dSchurCompUpdate_GPU(int_t streamId, int_t jj_cpu, int_t nub, int_t klst, int_t knsupc, int_t Rnbrow, int_t RemainBlk, int_t Remain_lbuf_send_size, int_t bigu_send_size, int_t ldu, int_t mcb, int_t buffer_size, int_t lsub_len, int_t usub_len, int_t ldt, int_t k0, dsluGPU_t *sluGPU, gridinfo_t *grid, SuperLUStat_t *)
int dwaitGPUscu(int streamId, dsluGPU_t *sluGPU, SCT_t *SCT)
#define MAX_NGPU_STREAMS
Definition: dlustruct_gpu.h:29
int dinitSluGPU3D_t(dsluGPU_t *sluGPU, dLUstruct_t *LUstruct, gridinfo3d_t *grid3d, int_t *perm_c_supno, int_t n, int_t buffer_size, int_t bigu_size, int_t ldt, SuperLUStat_t *)
void dPrint_matrix(char *desc, int_t m, int_t n, double *dA, int_t lda)
int dreduceAllAncestors3d_GPU(int_t ilvl, int_t *myNodeCount, int_t **treePerm, dLUValSubBuf_t *LUvsb, dLUstruct_t *LUstruct, gridinfo3d_t *grid3d, dsluGPU_t *sluGPU, d2Hreduce_t *d2Hred, factStat_t *factStat, HyP_t *HyP, SCT_t *SCT, SuperLUStat_t *)
int dsendLUpanelGPU2HOST(int_t k0, d2Hreduce_t *d2Hred, dsluGPU_t *sluGPU, SuperLUStat_t *)
void dsyncAllfunCallStreams(dsluGPU_t *sluGPU, SCT_t *SCT)
int dinitD2Hreduce(int next_k, d2Hreduce_t *d2Hred, int last_flag, HyP_t *HyP, dsluGPU_t *sluGPU, gridinfo_t *grid, dLUstruct_t *LUstruct, SCT_t *SCT)
integer, parameter, public lsub
Definition: superlupara.f90:35
integer, parameter, public usub
Definition: superlupara.f90:35
Definition: superlu_defs.h:451
Definition: superlu_defs.h:854
Definition: superlu_defs.h:799
Definition: util_dist.h:199
Definition: util_dist.h:101
Definition: superlu_defs.h:789
Definition: superlu_defs.h:1012
Definition: superlu_defs.h:940
Definition: superlu_ddefs.h:310
Definition: dlustruct_gpu.h:75
int_t * UrowindVec
Definition: dlustruct_gpu.h:83
int_t * local_l_blk_infoPtr
Definition: dlustruct_gpu.h:93
local_u_blk_info_t * local_u_blk_infoVec
Definition: dlustruct_gpu.h:96
int_t nsupers
Definition: dlustruct_gpu.h:106
int_t buffer_size
Definition: dlustruct_gpu.h:105
double * LnzvalVec
Definition: dlustruct_gpu.h:79
int_t * UnzvalPtr_host
Definition: dlustruct_gpu.h:86
int_t * UrowindPtr_host
Definition: dlustruct_gpu.h:85
local_l_blk_info_t * local_l_blk_infoVec
Definition: dlustruct_gpu.h:92
int_t * xsup_host
Definition: dlustruct_gpu.h:129
int_t * LnzvalPtr
Definition: dlustruct_gpu.h:80
int_t * UnzvalPtr
Definition: dlustruct_gpu.h:89
double * acc_L_buff
Definition: dlustruct_gpu.h:102
int_t * LrowindVec
Definition: dlustruct_gpu.h:76
int_t * xsup
Definition: dlustruct_gpu.h:107
int_t * local_u_blk_infoPtr
Definition: dlustruct_gpu.h:98
int_t * jib_lookupPtr
Definition: dlustruct_gpu.h:95
int_t * UrowindPtr
Definition: dlustruct_gpu.h:84
int_t * LnzvalPtr_host
Definition: dlustruct_gpu.h:81
int_t * LrowindPtr
Definition: dlustruct_gpu.h:77
double * UnzvalVec
Definition: dlustruct_gpu.h:88
int_t first_l_block_gpu
Definition: dlustruct_gpu.h:131
int_t * perm_c_supno
Definition: dlustruct_gpu.h:130
int_t * jib_lookupVec
Definition: dlustruct_gpu.h:94
Definition: superlu_ddefs.h:340
Definition: superlu_ddefs.h:97
Definition: dlustruct_gpu.h:47
Ublock_info_t * Ublock_info_host
Definition: dlustruct_gpu.h:65
double * bigV
Definition: dlustruct_gpu.h:49
double * Remain_L_buff_host
Definition: dlustruct_gpu.h:56
int_t * usub_IndirectJ3
Definition: dlustruct_gpu.h:68
double * bigU
Definition: dlustruct_gpu.h:50
double * bigU_host
Definition: dlustruct_gpu.h:51
Remain_info_t * Remain_info
Definition: dlustruct_gpu.h:64
int_t * usub
Definition: dlustruct_gpu.h:59
int_t * lsub_buf
Definition: dlustruct_gpu.h:61
Remain_info_t * Remain_info_host
Definition: dlustruct_gpu.h:66
int_t * indirect2
Definition: dlustruct_gpu.h:53
double * Remain_L_buff
Definition: dlustruct_gpu.h:55
int_t * indirect
Definition: dlustruct_gpu.h:52
int_t * usub_IndirectJ3_host
Definition: dlustruct_gpu.h:69
Ublock_info_t * Ublock_info
Definition: dlustruct_gpu.h:63
int_t * lsub
Definition: dlustruct_gpu.h:58
Definition: superlu_ddefs.h:467
Definition: superlu_ddefs.h:461
Definition: dlustruct_gpu.h:135
gpuStream_t CopyStream
Definition: dlustruct_gpu.h:138
int nGPUStreams
Definition: dlustruct_gpu.h:141
dLUstruct_gpu_t * A_gpu
Definition: dlustruct_gpu.h:137
double acc_async_cost
Definition: dlustruct_gpu.h:143
int * isNodeInMyGrid
Definition: dlustruct_gpu.h:142
Definition: superlu_defs.h:1025
Definition: superlu_defs.h:927
Definition: superlu_defs.h:978
Definition: superlu_defs.h:414
Definition: superlu_defs.h:404
Definition: superlu_defs.h:903
Definition: superlu_defs.h:910
Definition: superlu_defs.h:1034
Definition: superlu_defs.h:844
Definition: superlu_defs.h:989
Definition: superlu_defs.h:728
Distributed SuperLU data types and function prototypes.
int64_t int_t
Definition: superlu_defs.h:119