Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Oct 2, 2024
1 parent d8982fe commit 25f386f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/config/type_descriptor_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <string>

#include <ginkgo/core/base/half.hpp>
#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/config/property_tree.hpp>
#include <ginkgo/core/config/type_descriptor.hpp>
Expand Down Expand Up @@ -38,8 +39,10 @@ struct type_string {};
TYPE_STRING_OVERLOAD(void, "void");
TYPE_STRING_OVERLOAD(double, "float64");
TYPE_STRING_OVERLOAD(float, "float32");
TYPE_STRING_OVERLOAD(half, "float16");
TYPE_STRING_OVERLOAD(std::complex<double>, "complex<float64>");
TYPE_STRING_OVERLOAD(std::complex<float>, "complex<float32>");
TYPE_STRING_OVERLOAD(std::complex<half>, "complex<float16>");
TYPE_STRING_OVERLOAD(int32, "int32");
TYPE_STRING_OVERLOAD(int64, "int64");

Expand Down
8 changes: 8 additions & 0 deletions core/log/solver_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ class SolverProgressStore : public SolverProgress {
run<gko::matrix::Dense<double>, gko::matrix::Dense<float>,
gko::matrix::Dense<std::complex<double>>,
gko::matrix::Dense<std::complex<float>>,
#if GINKGO_ENABLE_HALF
gko::matrix::Dense<gko::half>,
gko::matrix::Dense<std::complex<gko::half>>,
gko::WritableToMatrixData<gko::half, int32>,
gko::WritableToMatrixData<std::complex<gko::half>, int32>,
gko::WritableToMatrixData<gko::half, int64>,
gko::WritableToMatrixData<std::complex<gko::half>, int64>,
#endif
// fallback for other matrix types
gko::WritableToMatrixData<double, int32>,
gko::WritableToMatrixData<float, int32>,
Expand Down
4 changes: 4 additions & 0 deletions cuda/solver/common_trs_kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ struct float_to_unsigned_impl<float> {
using type = uint32;
};

template <>
struct float_to_unsigned_impl<__half> {
using type = uint16;
};

/**
* Checks if a floating point number representation matches the representation
Expand Down

0 comments on commit 25f386f

Please sign in to comment.