Skip to content

Commit

Permalink
Fix nvcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 14, 2022
1 parent 78331ce commit e2eed3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/llama/mapping/Projection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,16 @@ namespace llama::mapping
// NOLINTNEXTLINE(google-explicit-constructor,hicpp-explicit-conversions)
LLAMA_FN_HOST_ACC_INLINE constexpr operator value_type() const
{
LLAMA_BEGIN_SUPPRESS_HOST_DEVICE_WARNING
return Projection::load(storageRef);
LLAMA_END_SUPPRESS_HOST_DEVICE_WARNING
}

LLAMA_FN_HOST_ACC_INLINE constexpr auto operator=(value_type v) -> ProjectionReference&
{
LLAMA_BEGIN_SUPPRESS_HOST_DEVICE_WARNING
storageRef = Projection::store(v);
LLAMA_END_SUPPRESS_HOST_DEVICE_WARNING
return *this;
}
};
Expand Down

0 comments on commit e2eed3f

Please sign in to comment.