From 1b8c029c408ac915e3e75e559f282f323467d2ca Mon Sep 17 00:00:00 2001 From: Eyal Rozenberg Date: Mon, 22 Jan 2024 15:41:49 +0200 Subject: [PATCH] Fixes #573: Dropped redundant inclusions of `` or moved them to where they're actually needed --- src/cuda/api/event.hpp | 2 -- src/cuda/api/ipc.hpp | 2 -- src/cuda/api/multi_wrapper_impls/memory.hpp | 2 ++ src/cuda/api/pci_id.hpp | 2 -- src/cuda/api/pointer.hpp | 2 -- src/cuda/api/stream.hpp | 2 -- src/cuda/api/virtual_memory.hpp | 1 - 7 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/cuda/api/event.hpp b/src/cuda/api/event.hpp index 4be57d61..87c838ad 100644 --- a/src/cuda/api/event.hpp +++ b/src/cuda/api/event.hpp @@ -11,8 +11,6 @@ #include "types.hpp" -#include - #include // for duration types #include "constants.hpp" #include "current_device.hpp" diff --git a/src/cuda/api/ipc.hpp b/src/cuda/api/ipc.hpp index d57790d3..2ffc362d 100644 --- a/src/cuda/api/ipc.hpp +++ b/src/cuda/api/ipc.hpp @@ -28,8 +28,6 @@ #include "types.hpp" #include "error.hpp" -#include - #include namespace cuda { diff --git a/src/cuda/api/multi_wrapper_impls/memory.hpp b/src/cuda/api/multi_wrapper_impls/memory.hpp index b3cb0c05..dea5fef0 100644 --- a/src/cuda/api/multi_wrapper_impls/memory.hpp +++ b/src/cuda/api/multi_wrapper_impls/memory.hpp @@ -11,6 +11,8 @@ #include "context.hpp" #include "ipc.hpp" +#include + #include "../array.hpp" #include "../device.hpp" #include "../event.hpp" diff --git a/src/cuda/api/pci_id.hpp b/src/cuda/api/pci_id.hpp index f1a7bbc9..1ef0a779 100644 --- a/src/cuda/api/pci_id.hpp +++ b/src/cuda/api/pci_id.hpp @@ -10,8 +10,6 @@ #include "types.hpp" #include "error.hpp" -#include - #include namespace cuda { diff --git a/src/cuda/api/pointer.hpp b/src/cuda/api/pointer.hpp index 36011425..875124e7 100644 --- a/src/cuda/api/pointer.hpp +++ b/src/cuda/api/pointer.hpp @@ -20,8 +20,6 @@ #include "error.hpp" #include "types.hpp" -#include - #ifndef NDEBUG #include #endif diff --git a/src/cuda/api/stream.hpp b/src/cuda/api/stream.hpp index f0b731bb..84198398 100644 --- a/src/cuda/api/stream.hpp +++ b/src/cuda/api/stream.hpp @@ -18,8 +18,6 @@ #include "miscellany.hpp" #include "types.hpp" -#include - #include #include #include diff --git a/src/cuda/api/virtual_memory.hpp b/src/cuda/api/virtual_memory.hpp index 7d1b995b..501eeef1 100644 --- a/src/cuda/api/virtual_memory.hpp +++ b/src/cuda/api/virtual_memory.hpp @@ -16,7 +16,6 @@ namespace cuda { // TODO: Perhaps move this down into the device namespace ? namespace memory { - class physical_allocation_t; namespace physical_allocation {