diff --git a/src/acc/cuda_hip/acc_dev.cpp b/src/acc/cuda_hip/acc_dev.cpp index 9028a4a3c5f..99c7969c4ce 100644 --- a/src/acc/cuda_hip/acc_dev.cpp +++ b/src/acc/cuda_hip/acc_dev.cpp @@ -20,11 +20,6 @@ #include #include -// for debug purpose -#if defined(__HIP_PLATFORM_NVCC__) -static const int verbose_print = 1; -#endif - /****************************************************************************/ extern "C" int c_dbcsr_acc_get_ndevices(int* n_devices) { ACC_API_CALL(GetDeviceCount, (n_devices)); @@ -49,10 +44,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(__CUDA) || defined(__HIP_PLATFORM_NVCC__) + ACC_API_CALL(DeviceSetLimit, (ACC(LimitPrintfFifoSize), (size_t)1000000000)); #endif return 0;