Skip to content

Commit

Permalink
Regards #573: Removed redundant inclusions of <cuda.h>.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalroz committed Jan 22, 2024
1 parent cd469a7 commit a209076
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/cuda/api/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "error.hpp"

#include <cuda_runtime.h>
#include <cuda.h>

#ifndef CUDA_NO_HALF
#include <cuda_fp16.h>
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "constants.hpp"
#include "types.hpp"

#include <cuda.h>
#include <string>
#include <utility>

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

#include <cuda.h>

namespace cuda {

///@cond
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "types.hpp"
#include <cuda_runtime_api.h>
#include <cuda.h>

#include <type_traits>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "current_context.hpp"

#include <cuda_runtime.h>
#include <cuda.h>

#if CUDA_VERSION < 11000
#define CAN_GET_APRIORI_KERNEL_HANDLE 0
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/link.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "link_options.hpp"
#include "memory.hpp"
#include "module.hpp"
#include <cuda.h>

#if __cplusplus >= 201703L
#include <filesystem>
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "current_context.hpp"

#include <cuda_runtime.h> // needed, rather than cuda_runtime_api.h, e.g. for cudaMalloc
#include <cuda.h>

#include <memory>
#include <cstring> // for ::std::memset
Expand Down
2 changes: 0 additions & 2 deletions src/cuda/api/memory_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#include "memory.hpp"

#include <cuda.h>

namespace cuda {

namespace memory {
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/miscellany.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <cuda_runtime_api.h>
#include "error.hpp"

#include <cuda.h>
#include <ostream>
#include <utility>

Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "memory.hpp"
#include "array.hpp"
#include "link_options.hpp"
#include <cuda.h>
#include <array>

#if __cplusplus >= 201703L
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "types.hpp"

#include <cuda_runtime_api.h>
#include <cuda.h>

#ifndef NDEBUG
#include <cassert>
Expand Down
1 change: 0 additions & 1 deletion src/cuda/api/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "types.hpp"

#include <cuda_runtime_api.h>
#include <cuda.h>

#include <string>
#include <memory>
Expand Down
3 changes: 2 additions & 1 deletion src/cuda/api/virtual_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
#ifndef CUDA_API_WRAPPERS_VIRTUAL_MEMORY_HPP_
#define CUDA_API_WRAPPERS_VIRTUAL_MEMORY_HPP_

// We need this out of the #ifdef, as otherwise we don't know what
// the CUDA_VERSION is...
#include <cuda.h>

#if CUDA_VERSION >= 10020

#include "types.hpp"
#include "memory.hpp"

Expand Down

0 comments on commit a209076

Please sign in to comment.