Skip to content

Commit

Permalink
[cuda, hip] reorg batch_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Aug 24, 2024
1 parent edf139b commit b79c20b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
//
// SPDX-License-Identifier: BSD-3-Clause

#ifndef GKO_COMMON_CUDA_HIP_LOG_BATCH_LOGGER_HPP_
#define GKO_COMMON_CUDA_HIP_LOG_BATCH_LOGGER_HPP_


#include <ginkgo/core/base/types.hpp>


namespace gko {
namespace kernels {
namespace GKO_DEVICE_NAMESPACE {
namespace batch_log {

/**
* @see reference/log/batch_logger.hpp
*/
Expand All @@ -28,3 +40,12 @@ class SimpleFinalLogger final {
real_type* const final_residuals_;
idx_type* const final_iters_;
};


} // namespace batch_log
} // namespace GKO_DEVICE_NAMESPACE
} // namespace kernels
} // namespace gko


#endif
8 changes: 4 additions & 4 deletions core/solver/batch_dispatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/log/batch_logger.hpp"
#include "common/cuda_hip/matrix/batch_struct.hpp"
#include "common/cuda_hip/preconditioner/batch_preconditioners.hpp"
#include "cuda/log/batch_logger.cuh"
#include "cuda/stop/batch_criteria.cuh"
#include "common/cuda_hip/stop/batch_criteria.hpp"


namespace gko {
Expand All @@ -52,10 +52,10 @@ using DeviceValueType = typename gko::kernels::cuda::cuda_type<ValueType>;


#include "common/cuda_hip/base/batch_struct.hpp"
#include "common/cuda_hip/log/batch_logger.hpp"
#include "common/cuda_hip/matrix/batch_struct.hpp"
#include "common/cuda_hip/preconditioner/batch_preconditioners.hpp"
#include "hip/log/batch_logger.hip.hpp"
#include "hip/stop/batch_criteria.hip.hpp"
#include "common/cuda_hip/stop/batch_criteria.hpp"


namespace gko {
Expand Down
27 changes: 0 additions & 27 deletions cuda/log/batch_logger.cuh

This file was deleted.

26 changes: 0 additions & 26 deletions hip/log/batch_logger.hip.hpp

This file was deleted.

0 comments on commit b79c20b

Please sign in to comment.