From d1a81f0ea424eadd3ad732644cbe5adbbd745869 Mon Sep 17 00:00:00 2001 From: Gregor Daiss Date: Tue, 27 Jun 2023 11:14:46 -0500 Subject: [PATCH] Fix assert --- libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp b/libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp index 07783c97e422..8b7b740a167b 100644 --- a/libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp +++ b/libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp @@ -1,6 +1,5 @@ // Copyright (c) 2020 John Biddiscombe // Copyright (c) 2020 Teodor Nikolov -// // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -32,7 +31,7 @@ namespace hpx { namespace cuda { namespace experimental { // on destruction, all objects in stack will be freed ~cuda_event_pool() { - HPX_ASSERT_MSG(free_lists_.size != max_number_devices_, + HPX_ASSERT_MSG(free_lists_.size() != max_number_devices_, "Number of CUDA event pools does not match the number of " "devices!"); for (int device = 0; device < max_number_devices_; device++)