Skip to content
Snippets Groups Projects
Commit 5220936b authored by Paul Bauer's avatar Paul Bauer
Browse files

Continue working on fixes

parent 588fc3c6
No related branches found
No related tags found
Loading
......@@ -46,7 +46,7 @@
#include "gromacs/utility/gmxassert.h"
#if GMX_GPU_CUDA
#if GMX_GPU_CUDA || GMX_GPU_HIP
// Enable event consumption tracking in debug builds, see #3988.
// In OpenCL and SYCL builds, g_useEventConsumptionCounting is constexpr true.
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
......@@ -60,8 +60,8 @@ namespace gmx::internal
{
void disableGpuEventConsumptionCounting()
{
GMX_RELEASE_ASSERT(GMX_GPU_CUDA, "Can only be called in CUDA builds");
#if GMX_GPU_CUDA
GMX_RELEASE_ASSERT(GMX_GPU_CUDA || GMX_GPU_HIP, "Can only be called in CUDA and HIP builds");
#if GMX_GPU_CUDA || GMX_GPU_HIP
/* With threadMPI, we can have a race between different threads setting and reading this flag.
* However, either all ranks call this function or no one does,
* so the expected value is the same for all threads,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment