4#include "CombBLAS/CombBLAS.h"
14int main(
int argc,
char* argv[])
17 MPI_Init(&argc, &argv);
18 MPI_Comm_size(MPI_COMM_WORLD,&
nprocs);
19 MPI_Comm_rank(MPI_COMM_WORLD,&myrank);
24 cout <<
"Usage: ./BlockedSpGEMM <MatrixA> <MatrixB> <br> <bc>" << endl;
31 string Aname(argv[1]);
32 string Bname(argv[2]);
33 int br = atoi(argv[3]);
34 int bc = atoi(argv[4]);
36 MPI_Barrier(MPI_COMM_WORLD);
40 shared_ptr<CommGrid> fullWorld;
41 fullWorld.reset(
new CommGrid(MPI_COMM_WORLD, 0, 0));
45 IT nr =
A.getnrow(), nc =
A.getncol(), nnz =
A.getnnz();
47 cout <<
"A " << nr <<
" " << nc <<
" " << nnz << std::endl;
51 nr =
B.getnrow(), nc =
B.getncol(), nnz =
B.getnnz();
53 cout <<
"B " << nr <<
" " << nc <<
" " << nnz << std::endl;
61 nr =
C.getnrow(), nc =
C.getncol(), nnz =
C.getnnz();
63 cout <<
"block size " << nr <<
" " << nc <<
" " << nnz
64 <<
" offsets " << roffset <<
" " << coffset
int main(int argc, char *argv[])
SpParMat< IT, NTC, DERC > getNextBlock(IT &roffset, IT &coffset)
Compute the maximum of two values.