Skip to content

Commit

Permalink
Avoid unused const variable/verbose_print warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Mar 14, 2024
1 parent 46c43ed commit 058d22a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/acc/cuda_hip/acc_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
#include <stdio.h>
#include <math.h>

// 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));
Expand All @@ -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;
Expand Down

0 comments on commit 058d22a

Please sign in to comment.