Skip to content

Commit

Permalink
Add __host__ __device__ qualifiers to fix bug#6364
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Feb 12, 2021
1 parent f3bf0e5 commit 752f2ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/include/cudf_test/column_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct fixed_width_type_converter {
template <typename FromT = From,
typename ToT = To,
typename std::enable_if<std::is_same<FromT, ToT>::value, void>::type* = nullptr>
ToT operator()(FromT element) const
__host__ __device__ ToT operator()(FromT element) const
{
return element;
}
Expand All @@ -106,7 +106,7 @@ struct fixed_width_type_converter {
(cudf::is_convertible<FromT, ToT>::value ||
std::is_constructible<ToT, FromT>::value),
void>::type* = nullptr>
ToT operator()(FromT element) const
__host__ __device__ ToT operator()(FromT element) const
{
return static_cast<ToT>(element);
}
Expand All @@ -117,7 +117,7 @@ struct fixed_width_type_converter {
typename ToT = To,
typename std::enable_if<std::is_integral<FromT>::value && cudf::is_timestamp_t<ToT>::value,
void>::type* = nullptr>
ToT operator()(FromT element) const
__host__ __device__ ToT operator()(FromT element) const
{
return ToT{typename ToT::duration{element}};
}
Expand Down

0 comments on commit 752f2ff

Please sign in to comment.