Added VERBOSE CMake option and made various prints optional to clean the output. VERBOSE is by off by default, pass cmake -DVERBOSE=ON to re-enable various non-critical warning and status prints (important warnings are still visible regardless of the flag).
This commit is contained in:
@@ -99,7 +99,7 @@ main(int argc, char** argv)
|
||||
info.int_params[AC_ny] = ny;
|
||||
info.int_params[AC_nz] = nz;
|
||||
acUpdateBuiltinParams(&info);
|
||||
printf("Updated mesh dimensions to (%d, %d, %d)\n", nx, ny, nz);
|
||||
printf("Benchmark mesh dimensions: (%d, %d, %d)\n", nx, ny, nz);
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "Could not parse arguments. Usage: ./benchmark <nx> <ny> <nz>.\n");
|
||||
|
@@ -86,6 +86,7 @@ main(void)
|
||||
if (pid == 0) {
|
||||
printf("---Test: Scalar reductions---\n");
|
||||
printf("Warning: testing only RTYPE_MAX and RTYPE_MIN\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
for (size_t i = 0; i < 2; ++i) { // NOTE: 2 instead of NUM_RTYPES
|
||||
const VertexBufferHandle v0 = VTXBUF_UUX;
|
||||
@@ -104,6 +105,7 @@ main(void)
|
||||
if (pid == 0) {
|
||||
printf("---Test: Vector reductions---\n");
|
||||
printf("Warning: testing only RTYPE_MAX and RTYPE_MIN\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
for (size_t i = 0; i < 2; ++i) { // NOTE: 2 instead of NUM_RTYPES
|
||||
const VertexBufferHandle v0 = VTXBUF_UUX;
|
||||
|
Reference in New Issue
Block a user