diff --git a/perf_test/sparse/KokkosSparse_spadd.cpp b/perf_test/sparse/KokkosSparse_spadd.cpp index c233fbee47..cd96a1162f 100644 --- a/perf_test/sparse/KokkosSparse_spadd.cpp +++ b/perf_test/sparse/KokkosSparse_spadd.cpp @@ -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++) @@ -493,6 +493,11 @@ int main (int argc, char ** argv){ throw std::invalid_argument("To run cuSPARSE SpAdd, must supply the '--cuda ' 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)