4#include "CombBLAS/CombBLAS.h"
23 std::pair<int64_t, int64_t>
first;
35template<
typename IN,
typename OUT>
47 res.first.first =
arg1.first.first;
48 res.first.second =
arg1.first.second;
49 res.second.first =
arg2.first.first;
50 res.second.second =
arg2.first.second;
58 a.first.second =
arg2;
68 static bool exists =
false;
80 for (
int i = 0; i < *
len; ++i) {
108 unsigned int base = 20;
110 unsigned long total_k =
static_cast<unsigned int>(
pow(base, k));
113 int nnzs[4] = {146, 56, 100, 141};
114 int lrows[4] = {2, 1, 1, 1};
119 std::vector<int64_t>
lvals(
static_cast<unsigned long>(
vec_size));
121 std::string
fnames[4] = {
"mat.0.txt",
"mat.1.txt",
"mat.2.txt",
"mat.3.txt"};
128 for (
int i = 0; i < 4; ++i) {
146 std::printf(
"Rank: %d lrow_ids %ld lcol_ids %ld lvals %ld\n",
149 std::shared_ptr<CommGrid>
grid =
157 int m = 5, n =
static_cast<int>(
total_k);
168 std::cout<<
"before multiplication";
192 if (v.empty())
break;
int read_matrix(std::string fname, int offset, int row_offset, vec64_t &lrow_ids, vec64_t &lcol_ids, vec64_t &lvals)
std::vector< int64_t > vec64_t
SpParMat< int64_t, NT, DCCols > MPI_DCCols
SpDCCols< int64_t, NT > DCCols
std::pair< int64_t, int64_t > second
friend std::ostream & operator<<(std::ostream &os, const CommonKmers &m)
std::pair< int64_t, int64_t > first
static bool returnedSAID()
static OUT add(const OUT &arg1, const OUT &arg2)
static void MPI_func(void *invec, void *inoutvec, int *len, MPI_Datatype *datatype)
static OUT multiply(const IN &arg1, const IN &arg2)
static void axpy(IN a, const IN &x, OUT &y)