Skip to content

Commit

Permalink
Merge pull request #5854 from dalg24/house_keeping
Browse files Browse the repository at this point in the history
House keeping (move Serial, Threads, and Cuda headers into resp. subdirectories)
  • Loading branch information
dalg24 authored Feb 3, 2023
2 parents 34a21cb + 387de48 commit cfb7b2f
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion core/src/Kokkos_Cuda.hpp → core/src/Cuda/Kokkos_Cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static_assert(false,
#include <vector>

#include <impl/Kokkos_AnalyzePolicy.hpp>
#include <Kokkos_CudaSpace.hpp>
#include <Cuda/Kokkos_CudaSpace.hpp>
#include <Cuda/Kokkos_Cuda_Error.hpp> // CUDA_SAFE_CALL

#include <Kokkos_Parallel.hpp>
Expand Down
4 changes: 2 additions & 2 deletions core/src/Cuda/Kokkos_CudaSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#ifdef KOKKOS_ENABLE_CUDA

#include <Kokkos_Core.hpp>
#include <Kokkos_Cuda.hpp>
#include <Kokkos_CudaSpace.hpp>
#include <Cuda/Kokkos_Cuda.hpp>
#include <Cuda/Kokkos_CudaSpace.hpp>

#include <cstdlib>
#include <iostream>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_Cuda_GraphNodeKernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <Kokkos_Parallel_Reduce.hpp>
#include <Kokkos_PointerOwnership.hpp>

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

namespace Kokkos {
Expand Down
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_Cuda_GraphNode_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <impl/Kokkos_GraphImpl.hpp> // GraphAccess needs to be complete

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

namespace Kokkos {
Expand Down
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_Cuda_Graph_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <impl/Kokkos_GraphNodeImpl.hpp>
#include <Cuda/Kokkos_Cuda_GraphNode_Impl.hpp>

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

Expand Down
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_Cuda_UniqueToken.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <Kokkos_Macros.hpp>
#ifdef KOKKOS_ENABLE_CUDA

#include <Kokkos_CudaSpace.hpp>
#include <Cuda/Kokkos_CudaSpace.hpp>
#include <Kokkos_UniqueToken.hpp>
#include <impl/Kokkos_SharedAlloc.hpp>

Expand Down
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_Cuda_WorkGraphPolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef KOKKOS_CUDA_WORKGRAPHPOLICY_HPP
#define KOKKOS_CUDA_WORKGRAPHPOLICY_HPP

#include <Kokkos_Cuda.hpp>
#include <Cuda/Kokkos_Cuda.hpp>
#include <Cuda/Kokkos_Cuda_KernelLaunch.hpp>

namespace Kokkos {
Expand Down
1 change: 0 additions & 1 deletion core/src/SYCL/Kokkos_SYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <SYCL/Kokkos_SYCL_Instance.hpp>
#include <SYCL/Kokkos_SYCL.hpp>
#include <Kokkos_HostSpace.hpp>
#include <Kokkos_Serial.hpp>
#include <Kokkos_Core.hpp>
#include <impl/Kokkos_Error.hpp>
#include <impl/Kokkos_DeviceManagement.hpp>
Expand Down
2 changes: 1 addition & 1 deletion core/src/Serial/Kokkos_Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <Kokkos_Core.hpp>

#include <Kokkos_Serial.hpp>
#include <Serial/Kokkos_Serial.hpp>
#include <impl/Kokkos_Traits.hpp>
#include <impl/Kokkos_Error.hpp>
#include <impl/Kokkos_ExecSpaceManager.hpp>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions core/src/Serial/Kokkos_Serial_Task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

#include <Kokkos_TaskScheduler_fwd.hpp>

#include <impl/Kokkos_TaskQueue.hpp>
#include <Kokkos_Serial.hpp>
#include <Serial/Kokkos_Serial.hpp>
#include <impl/Kokkos_HostThreadTeam.hpp>
#include <impl/Kokkos_TaskQueue.hpp>

//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/src/Threads/Kokkos_Threads_WorkGraphPolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define KOKKOS_THREADS_WORKGRAPHPOLICY_HPP

#include <Kokkos_Core_fwd.hpp>
#include <Kokkos_Threads.hpp>
#include <Threads/Kokkos_Threads.hpp>

namespace Kokkos {
namespace Impl {
Expand Down
2 changes: 1 addition & 1 deletion core/src/decl/Kokkos_Declare_CUDA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define KOKKOS_DECLARE_CUDA_HPP

#if defined(KOKKOS_ENABLE_CUDA)
#include <Kokkos_Cuda.hpp>
#include <Cuda/Kokkos_Cuda.hpp>
#include <Cuda/Kokkos_Cuda_Half_Impl_Type.hpp>
#include <Cuda/Kokkos_Cuda_Half_Conversion.hpp>
#include <Cuda/Kokkos_Cuda_Parallel_MDRange.hpp>
Expand Down
2 changes: 1 addition & 1 deletion core/src/decl/Kokkos_Declare_SERIAL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define KOKKOS_DECLARE_SERIAL_HPP

#if defined(KOKKOS_ENABLE_SERIAL)
#include <Kokkos_Serial.hpp>
#include <Serial/Kokkos_Serial.hpp>
#include <Serial/Kokkos_Serial_MDRangePolicy.hpp>
#endif

Expand Down
2 changes: 1 addition & 1 deletion core/src/decl/Kokkos_Declare_THREADS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define KOKKOS_DECLARE_THREADS_HPP

#if defined(KOKKOS_ENABLE_THREADS)
#include <Kokkos_Threads.hpp>
#include <Threads/Kokkos_Threads.hpp>
#include <Threads/Kokkos_Threads_MDRangePolicy.hpp>
#endif

Expand Down
2 changes: 1 addition & 1 deletion core/src/impl/Kokkos_Default_Graph_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <impl/Kokkos_GraphImpl_fwd.hpp>
#include <impl/Kokkos_Default_Graph_fwd.hpp>

#include <Kokkos_Serial.hpp>
#include <Serial/Kokkos_Serial.hpp>
#include <OpenMP/Kokkos_OpenMP.hpp>
// FIXME @graph other backends?

Expand Down

0 comments on commit cfb7b2f

Please sign in to comment.