Skip to content

Commit

Permalink
ocl: demoted verbose messages to higher verbosity-level (#782)
Browse files Browse the repository at this point in the history
* Adjusted an internal setting (ZEX_NUMBER_OF_CCS).
  • Loading branch information
hfp authored Apr 22, 2024
1 parent 4cdb2dc commit 54af50c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/acc/opencl/acc_opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ int c_dbcsr_acc_init(void) {
int j = strlen(zex_nccs);
for (i = 0; i < ACC_OPENCL_MAXNDEVS; ++i) {
const char* const istr = (0 < i ? ",%u:%i" : "%u:%i");
const int n = LIBXSMM_SNPRINTF(zex_nccs + j, sizeof(zex_nccs) - j, istr, i, LIBXSMM_MAX(nccs, 1));
const int n = LIBXSMM_SNPRINTF(zex_nccs + j, sizeof(zex_nccs) - j, istr, i, LIBXSMM_CLMP(nccs, 1, 0 != wa ? 2 : 4));
if (0 < n) j += n;
else {
j = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/acc/opencl/smm/opencl_libsmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,11 @@ int libsmm_acc_init(void) {
}
}
# if defined(OPENCL_KERNELS_DEVICES)
if (0 != c_dbcsr_acc_opencl_config.verbosity && 0 != ntuned) {
if (0 != ntuned && (2 <= c_dbcsr_acc_opencl_config.verbosity || 0 > c_dbcsr_acc_opencl_config.verbosity)) {
fprintf(stderr, "INFO ACC/LIBSMM: PARAMS in %u set%s loaded targeting ", ntuned, 1 != ntuned ? "s" : "");
if (0 != c_dbcsr_acc_opencl_config.devmatch) {
fprintf(stderr, "%i device%s\n", ndevices_params, 1 != ndevices_params ? "s" : "");
if (2 <= c_dbcsr_acc_opencl_config.verbosity || 0 > c_dbcsr_acc_opencl_config.verbosity) {
if (3 <= c_dbcsr_acc_opencl_config.verbosity || 0 > c_dbcsr_acc_opencl_config.verbosity) {
unsigned int i = 0;
for (; i < (unsigned int)ndevices_params; ++i) {
fprintf(stderr, "INFO ACC/LIBSMM: PARAMS -> \"%s\"\n", OPENCL_KERNELS_DEVICES[i]);
Expand Down

0 comments on commit 54af50c

Please sign in to comment.