To compile in c++: g++ spmv_cpu.cpp <== Add the flags you need/want To run : ./a.out 100K