Skip to content

Commit

Permalink
spadd perftest: don't allow outputting c with mkl
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-kelley committed Apr 6, 2021
1 parent 0c8d300 commit 1ad5273
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perf_test/sparse/KokkosSparse_spadd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void run_experiment(const Params& params)
#endif

char* cusparseBuffer;
int c_nnz;
int c_nnz = 0;
const double alphabeta = 1.0;

for(int sumRep = 0; sumRep < params.repeat; sumRep++)
Expand Down Expand Up @@ -493,6 +493,11 @@ int main (int argc, char ** argv){
throw std::invalid_argument("To run cuSPARSE SpAdd, must supply the '--cuda <device id>' flag");
}

if(params.cmtx.length() && params.use_mkl)
{
throw std::invalid_argument("If running MKL, can't output the result to file");
}

bool useSerial = !useOMP && !useCUDA;

if(useOMP)
Expand Down

0 comments on commit 1ad5273

Please sign in to comment.