Skip to content

Commit

Permalink
[batch] review updates:
Browse files Browse the repository at this point in the history
- adds header guard

Co-authored-by: Pratik Nayak <[email protected]>
  • Loading branch information
MarcelKoch and pratikvn committed Oct 1, 2024
1 parent 045ad1c commit b4c2490
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cuda/solver/batch_bicgstab_launch.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GKO_CUDA_SOLVER_BATCH_BICGSTAB_LAUNCH_CUH_
#define GKO_CUDA_SOLVER_BATCH_BICGSTAB_LAUNCH_CUH_


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/base/config.hpp"
#include "common/cuda_hip/base/types.hpp"
Expand Down Expand Up @@ -110,3 +114,6 @@ void launch_apply_kernel(
} // namespace cuda
} // namespace kernels
} // namespace gko


#endif
7 changes: 7 additions & 0 deletions cuda/solver/batch_cg_launch.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GKO_CUDA_SOLVER_BATCH_CG_LAUNCH_CUH_
#define GKO_CUDA_SOLVER_BATCH_CG_LAUNCH_CUH_


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/base/config.hpp"
#include "common/cuda_hip/base/types.hpp"
Expand Down Expand Up @@ -102,3 +106,6 @@ void launch_apply_kernel(
} // namespace cuda
} // namespace kernels
} // namespace gko


#endif
7 changes: 7 additions & 0 deletions hip/solver/batch_bicgstab_launch.hip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GKO_CUDA_SOLVER_BATCH_BICGSTAB_LAUNCH_HIP_HPP_
#define GKO_CUDA_SOLVER_BATCH_BICGSTAB_LAUNCH_HIP_HPP_


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/base/config.hpp"
#include "common/cuda_hip/base/types.hpp"
Expand Down Expand Up @@ -76,3 +80,6 @@ void launch_apply_kernel(
} // namespace hip
} // namespace kernels
} // namespace gko


#endif
7 changes: 7 additions & 0 deletions hip/solver/batch_cg_launch.hip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GKO_CUDA_SOLVER_BATCH_CG_LAUNCH_HPP_
#define GKO_CUDA_SOLVER_BATCH_CG_LAUNCH_HPP_


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/base/config.hpp"
#include "common/cuda_hip/base/types.hpp"
Expand Down Expand Up @@ -68,3 +72,6 @@ void launch_apply_kernel(std::shared_ptr<const DefaultExecutor> exec,
} // namespace hip
} // namespace kernels
} // namespace gko


#endif

0 comments on commit b4c2490

Please sign in to comment.