Skip to content

Commit

Permalink
fix some CUDA warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Mar 1, 2022
1 parent 37056a0 commit c4b94b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/llama/Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ namespace llama
}

template<std::size_t I>
constexpr auto get() -> T&
LLAMA_FN_HOST_ACC_INLINE constexpr auto get() -> T&
{
return element[I];
}

template<std::size_t I>
constexpr auto get() const -> const T&
LLAMA_FN_HOST_ACC_INLINE constexpr auto get() const -> const T&
{
return element[I];
}
Expand Down Expand Up @@ -210,7 +210,7 @@ namespace llama
}

template<typename T, std::size_t N>
LLAMA_FN_HOST_ACC_INLINE constexpr auto dot(Array<T, N> a, Array<T, N> b) -> T
LLAMA_FN_HOST_ACC_INLINE constexpr auto dot([[maybe_unused]] Array<T, N> a, [[maybe_unused]] Array<T, N> b) -> T
{
T r = 0;
if constexpr(N > 0)
Expand Down

0 comments on commit c4b94b6

Please sign in to comment.