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 fa2c8d80b9e4..31c6cc768f85 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 @@ -73,8 +73,8 @@ namespace hpx { namespace cuda { namespace experimental { cuda_event_pool& operator=(cuda_event_pool const&) = delete; private: - // Private singleton constructor - // Creates a bunch of events on initialization + // Private singleton constructor. Creates a initial_events_in_pool of + // events on initialization cuda_event_pool() : max_number_devices_(0) { diff --git a/libs/core/async_cuda/include/hpx/async_cuda/cuda_future.hpp b/libs/core/async_cuda/include/hpx/async_cuda/cuda_future.hpp index 7b906baa42ed..62fc91c2d1d4 100644 --- a/libs/core/async_cuda/include/hpx/async_cuda/cuda_future.hpp +++ b/libs/core/async_cuda/include/hpx/async_cuda/cuda_future.hpp @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Gregor Daiß // Copyright (c) 2020 John Biddiscombe // Copyright (c) 2016 Thomas Heller // Copyright (c) 2016 Hartmut Kaiser @@ -236,8 +237,8 @@ namespace hpx { namespace cuda { namespace experimental { hpx::future get_future_with_event( Allocator const& a, cudaStream_t stream, int device = -1) { - if (device == -1) - check_cuda_error(cudaGetDevice(&device)); + if (device == -1) + check_cuda_error(cudaGetDevice(&device)); return get_future(a, stream, device); } diff --git a/libs/core/async_cuda/src/cuda_event.cpp b/libs/core/async_cuda/src/cuda_event.cpp index 809cf1fa892c..470dbf5533d4 100644 --- a/libs/core/async_cuda/src/cuda_event.cpp +++ b/libs/core/async_cuda/src/cuda_event.cpp @@ -8,7 +8,7 @@ #include #include -namespace hpx { namespace cuda { namespace experimental { +namespace hpx { namespace cuda { namespace experimental { cuda_event_pool& cuda_event_pool::get_event_pool() { static cuda_event_pool event_pool_; diff --git a/libs/core/async_cuda/src/cuda_event_callback.cpp b/libs/core/async_cuda/src/cuda_event_callback.cpp index 1b0267cd068b..9597656ecbe6 100644 --- a/libs/core/async_cuda/src/cuda_event_callback.cpp +++ b/libs/core/async_cuda/src/cuda_event_callback.cpp @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Gregor Daiß // Copyright (c) 2021 ETH Zurich // Copyright (c) 2020 John Biddiscombe // Copyright (c) 2016 Hartmut Kaiser diff --git a/libs/core/async_cuda/src/cuda_future.cpp b/libs/core/async_cuda/src/cuda_future.cpp index c797191e1474..545b1dc9b77c 100644 --- a/libs/core/async_cuda/src/cuda_future.cpp +++ b/libs/core/async_cuda/src/cuda_future.cpp @@ -1,3 +1,4 @@ +// Copyright (c) 2023 Gregor Daiß // Copyright (c) 2020 John Biddiscombe // Copyright (c) 2016 Hartmut Kaiser // Copyright (c) 2016 Thomas Heller