Skip to content
Snippets Groups Projects
Commit 9d12eb12 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

fixed a bug in opencl_nvidia sgemm. We were freeing params before writing...

fixed a bug in opencl_nvidia sgemm. We were freeing params before writing output file, which was not generating correct output
parent f7a9100f
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,6 @@ main (int argc, char *argv[]) {
pb_SwitchToTimer(&timers, pb_TimerID_NONE);
pb_PrintTimerSet(&timers);
pb_FreeParameters(params);
if (params->outFile) {
/* Write C to file */
......@@ -202,6 +201,7 @@ main (int argc, char *argv[]) {
matArow, matBcol, matC);
}
pb_FreeParameters(params);
double GPUtime = pb_GetElapsedTime(&(timers.timers[pb_TimerID_KERNEL]));
std::cout<< "GFLOPs = " << 2.* matArow * matBcol * matAcol/GPUtime/1e9 << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment