Skip to content

Commit

Permalink
fix missing device_type and ptr_param
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Mar 23, 2023
1 parent 710fcc8 commit bbb0fcb
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/cuda_hip/solver/multigrid_kernels.hpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ void kcycle_check_stop(std::shared_ptr<const DefaultExecutor> exec,
kernel::kcycle_check_stop_kernel<<<grid, default_block_size, 0,
exec->get_stream()>>>(
nrhs, as_device_type(old_norm->get_const_values()),
as_device_type(new_norm->get_const_values()), rel_tol,
as_device_type(dis_stop.get_data()));
as_device_type(new_norm->get_const_values()),
as_device_type(rel_tol), as_device_type(dis_stop.get_data()));
}
is_stop = exec->copy_val_to_host(dis_stop.get_const_data());
}
Expand Down
5 changes: 5 additions & 0 deletions include/ginkgo/core/distributed/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ class Matrix
#if GINKGO_ENABLE_HALF
friend class Matrix<previous_precision<previous_precision<ValueType>>,
LocalIndexType, GlobalIndexType>;
using ConvertibleTo<
Matrix<next_precision<next_precision<value_type>>, local_index_type,
global_index_type>>::convert_to;
using ConvertibleTo<Matrix<next_precision<next_precision<value_type>>,
local_index_type, global_index_type>>::move_to;

void convert_to(
Matrix<next_precision<next_precision<value_type>>, local_index_type,
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/distributed/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ class Vector

#if GINKGO_ENABLE_HALF
friend class Vector<previous_precision<previous_precision<ValueType>>>;
using ConvertibleTo<
Vector<next_precision<next_precision<ValueType>>>>::convert_to;
using ConvertibleTo<
Vector<next_precision<next_precision<ValueType>>>>::move_to;

void convert_to(Vector<next_precision<next_precision<ValueType>>>* result)
const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/coo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ class Coo : public EnableLinOp<Coo<ValueType, IndexType>>,
#if GINKGO_ENABLE_HALF
friend class Coo<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<
Coo<next_precision<next_precision<ValueType>>, IndexType>>::convert_to;
using ConvertibleTo<
Coo<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Coo<next_precision<next_precision<ValueType>>, IndexType>*
result) const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/csr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ class Csr : public EnableLinOp<Csr<ValueType, IndexType>>,
#if GINKGO_ENABLE_HALF
friend class Csr<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<
Csr<next_precision<next_precision<ValueType>>, IndexType>>::convert_to;
using ConvertibleTo<
Csr<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Csr<next_precision<next_precision<ValueType>>, IndexType>*
result) const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/dense.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ class Dense

#if GINKGO_ENABLE_HALF
friend class Dense<previous_precision<previous_precision<ValueType>>>;
using ConvertibleTo<
Dense<next_precision<next_precision<ValueType>>>>::convert_to;
using ConvertibleTo<
Dense<next_precision<next_precision<ValueType>>>>::move_to;

void convert_to(Dense<next_precision<next_precision<ValueType>>>* result)
const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/diagonal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ class Diagonal

#if GINKGO_ENABLE_HALF
friend class Diagonal<previous_precision<previous_precision<ValueType>>>;
using ConvertibleTo<
Diagonal<next_precision<next_precision<ValueType>>>>::convert_to;
using ConvertibleTo<
Diagonal<next_precision<next_precision<ValueType>>>>::move_to;

void convert_to(Diagonal<next_precision<next_precision<ValueType>>>* result)
const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/ell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ class Ell : public EnableLinOp<Ell<ValueType, IndexType>>,
#if GINKGO_ENABLE_HALF
friend class Ell<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<
Ell<next_precision<next_precision<ValueType>>, IndexType>>::convert_to;
using ConvertibleTo<
Ell<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Ell<next_precision<next_precision<ValueType>>, IndexType>*
result) const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/fbcsr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ class Fbcsr : public EnableLinOp<Fbcsr<ValueType, IndexType>>,
#if GINKGO_ENABLE_HALF
friend class Fbcsr<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<Fbcsr<next_precision<next_precision<ValueType>>,
IndexType>>::convert_to;
using ConvertibleTo<
Fbcsr<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Fbcsr<next_precision<next_precision<ValueType>>, IndexType>*
result) const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/hybrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ class Hybrid
#if GINKGO_ENABLE_HALF
friend class Hybrid<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<Hybrid<next_precision<next_precision<ValueType>>,
IndexType>>::convert_to;
using ConvertibleTo<
Hybrid<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Hybrid<next_precision<next_precision<ValueType>>,
IndexType>* result) const override;
Expand Down
4 changes: 4 additions & 0 deletions include/ginkgo/core/matrix/sellp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ class Sellp : public EnableLinOp<Sellp<ValueType, IndexType>>,
#if GINKGO_ENABLE_HALF
friend class Sellp<previous_precision<previous_precision<ValueType>>,
IndexType>;
using ConvertibleTo<Sellp<next_precision<next_precision<ValueType>>,
IndexType>>::convert_to;
using ConvertibleTo<
Sellp<next_precision<next_precision<ValueType>>, IndexType>>::move_to;

void convert_to(Sellp<next_precision<next_precision<ValueType>>, IndexType>*
result) const override;
Expand Down

0 comments on commit bbb0fcb

Please sign in to comment.