diff --git a/src/acc/cuda_hip/acc_dev.cpp b/src/acc/cuda_hip/acc_dev.cpp index 9028a4a3c5f..08d7aae3026 100644 --- a/src/acc/cuda_hip/acc_dev.cpp +++ b/src/acc/cuda_hip/acc_dev.cpp @@ -21,8 +21,8 @@ #include // for debug purpose -#if defined(__HIP_PLATFORM_NVCC__) -static const int verbose_print = 1; +#if defined(__HIP_PLATFORM_NVCC__) && !defined(ACC_DEV_PRINT_VERBOSE) && 0 +# define ACC_DEV_PRINT_VERBOSE #endif /****************************************************************************/ @@ -49,10 +49,8 @@ extern "C" int c_dbcsr_acc_set_active_device(int device_id) { // establish context ACC_API_CALL(Free, (0)); -#if defined(__HIP_PLATFORM_NVCC__) - if (verbose_print) { - ACC_API_CALL(DeviceSetLimit, (ACC(LimitPrintfFifoSize), (size_t)1000000000)); - } +#if defined(__HIP_PLATFORM_NVCC__) && defined(ACC_DEV_PRINT_VERBOSE) + ACC_API_CALL(DeviceSetLimit, (ACC(LimitPrintfFifoSize), (size_t)1000000000)); #endif return 0;