Disabled writing out unnecessary files when auto-optimizing the code
This commit is contained in:
@@ -458,7 +458,7 @@ autoOptimize(const Device device)
|
|||||||
if (cudaGetLastError() != cudaSuccess) // resets the error if any
|
if (cudaGetLastError() != cudaSuccess) // resets the error if any
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
printf("(%d, %d, %d)\n", x, y, z);
|
// printf("(%d, %d, %d)\n", x, y, z);
|
||||||
|
|
||||||
cudaEvent_t tstart, tstop;
|
cudaEvent_t tstart, tstop;
|
||||||
cudaEventCreate(&tstart);
|
cudaEventCreate(&tstart);
|
||||||
@@ -482,13 +482,16 @@ autoOptimize(const Device device)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if VERBOSE_PRINTING
|
||||||
printf("Best dims (%d, %d, %d) %f ms\n", best_dims.x, best_dims.y, best_dims.z,
|
printf("Auto-optimization done. The best threadblock dimensions for rkStep: (%d, %d, %d) %f ms\n", best_dims.x, best_dims.y, best_dims.z,
|
||||||
double(best_time) / NUM_ITERATIONS);
|
double(best_time) / NUM_ITERATIONS);
|
||||||
|
#endif
|
||||||
|
/*
|
||||||
FILE* fp = fopen("../config/rk3_tbdims.cuh", "w");
|
FILE* fp = fopen("../config/rk3_tbdims.cuh", "w");
|
||||||
ERRCHK(fp);
|
ERRCHK(fp);
|
||||||
fprintf(fp, "%d, %d, %d\n", best_dims.x, best_dims.y, best_dims.z);
|
fprintf(fp, "%d, %d, %d\n", best_dims.x, best_dims.y, best_dims.z);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
*/
|
||||||
|
|
||||||
rk3_tpb = best_dims;
|
rk3_tpb = best_dims;
|
||||||
return AC_SUCCESS;
|
return AC_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user