Skip to content

Commit

Permalink
Fix some format issues / update file author lists
Browse files Browse the repository at this point in the history
  • Loading branch information
G-071 committed Jun 28, 2023
1 parent a7e76e5 commit 525ad21
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libs/core/async_cuda/include/hpx/async_cuda/cuda_event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
5 changes: 3 additions & 2 deletions libs/core/async_cuda/include/hpx/async_cuda/cuda_future.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2023 Gregor Daiß
// Copyright (c) 2020 John Biddiscombe
// Copyright (c) 2016 Thomas Heller
// Copyright (c) 2016 Hartmut Kaiser
Expand Down Expand Up @@ -236,8 +237,8 @@ namespace hpx { namespace cuda { namespace experimental {
hpx::future<void> 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<Allocator, event_mode>(a, stream, device);
}

Expand Down
2 changes: 1 addition & 1 deletion libs/core/async_cuda/src/cuda_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <hpx/async_cuda/cuda_event.hpp>
#include <hpx/async_cuda/custom_gpu_api.hpp>

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_;
Expand Down
1 change: 1 addition & 0 deletions libs/core/async_cuda/src/cuda_event_callback.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2023 Gregor Daiß
// Copyright (c) 2021 ETH Zurich
// Copyright (c) 2020 John Biddiscombe
// Copyright (c) 2016 Hartmut Kaiser
Expand Down
1 change: 1 addition & 0 deletions libs/core/async_cuda/src/cuda_future.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2023 Gregor Daiß
// Copyright (c) 2020 John Biddiscombe
// Copyright (c) 2016 Hartmut Kaiser
// Copyright (c) 2016 Thomas Heller
Expand Down

0 comments on commit 525ad21

Please sign in to comment.