Skip to content

Commit

Permalink
Reorganize #include <cuda_runtime_api.h>
Browse files Browse the repository at this point in the history
Since all calls to cudaAPI are where wrappers are defined, remove includes from other parts of Cuda
  • Loading branch information
Thomas Conrad Clevenger authored and tcclevenger committed Jul 27, 2023
1 parent 4d8629f commit 03039fe
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion core/src/Cuda/Kokkos_Cuda_GraphNodeKernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <Kokkos_PointerOwnership.hpp>

#include <Cuda/Kokkos_Cuda.hpp>
#include <cuda_runtime_api.h>

namespace Kokkos {
namespace Impl {
Expand Down
1 change: 0 additions & 1 deletion core/src/Cuda/Kokkos_Cuda_GraphNode_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <impl/Kokkos_GraphImpl.hpp> // GraphAccess needs to be complete

#include <Cuda/Kokkos_Cuda.hpp>
#include <cuda_runtime_api.h>

namespace Kokkos {
namespace Impl {
Expand Down
1 change: 0 additions & 1 deletion core/src/Cuda/Kokkos_Cuda_Graph_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <Cuda/Kokkos_Cuda_GraphNode_Impl.hpp>

#include <Cuda/Kokkos_Cuda.hpp>
#include <cuda_runtime_api.h>
#include <Cuda/Kokkos_Cuda_Error.hpp>
#include <Cuda/Kokkos_Cuda_Instance.hpp>

Expand Down
1 change: 1 addition & 0 deletions core/src/Cuda/Kokkos_Cuda_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <impl/Kokkos_Tools.hpp>
#include <atomic>
#include <Cuda/Kokkos_Cuda_Error.hpp>
#include <cuda_runtime_api.h>

//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
Expand Down

0 comments on commit 03039fe

Please sign in to comment.