Skip to content

Commit

Permalink
Fixes #573: Dropped redundant inclusions of <cuda_runtime_api.h> or…
Browse files Browse the repository at this point in the history
… moved them to where they're actually needed
  • Loading branch information
eyalroz committed Jan 22, 2024
1 parent 64f3425 commit 1b8c029
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/cuda/api/event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "types.hpp"

#include <cuda_runtime_api.h>

#include <chrono> // for duration types
#include "constants.hpp"
#include "current_device.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/cuda/api/ipc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include "types.hpp"
#include "error.hpp"

#include <cuda_runtime_api.h>

#include <string>

namespace cuda {
Expand Down
2 changes: 2 additions & 0 deletions src/cuda/api/multi_wrapper_impls/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "context.hpp"
#include "ipc.hpp"

#include <cuda_runtime_api.h>

#include "../array.hpp"
#include "../device.hpp"
#include "../event.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/cuda/api/pci_id.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "types.hpp"
#include "error.hpp"

#include <cuda_runtime_api.h>

#include <string>

namespace cuda {
Expand Down
2 changes: 0 additions & 2 deletions src/cuda/api/pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include "error.hpp"
#include "types.hpp"

#include <cuda_runtime_api.h>

#ifndef NDEBUG
#include <cassert>
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/cuda/api/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include "miscellany.hpp"
#include "types.hpp"

#include <cuda_runtime_api.h>

#include <string>
#include <memory>
#include <utility>
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/virtual_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace cuda {
// TODO: Perhaps move this down into the device namespace ?
namespace memory {


class physical_allocation_t;

namespace physical_allocation {
Expand Down

0 comments on commit 1b8c029

Please sign in to comment.