Skip to content

Commit

Permalink
Remove unused constructors for ThreadVectorRangeBoundairesStruct
Browse files Browse the repository at this point in the history
that are not taking in TeamMemberType as an argument.
  • Loading branch information
ldh4 committed Apr 7, 2023
1 parent 715a6ff commit 0126dcb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
8 changes: 0 additions & 8 deletions core/src/Cuda/Kokkos_Cuda_Team.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,10 @@ struct ThreadVectorRangeBoundariesStruct<iType, CudaTeamMember> {
ThreadVectorRangeBoundariesStruct(const CudaTeamMember, index_type count)
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(index_type count)
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(const CudaTeamMember, index_type arg_begin,
index_type arg_end)
: start(arg_begin), end(arg_end) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(index_type arg_begin, index_type arg_end)
: start(arg_begin), end(arg_end) {}
};

} // namespace Impl
Expand Down
8 changes: 0 additions & 8 deletions core/src/HIP/Kokkos_HIP_Team.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,18 +367,10 @@ struct ThreadVectorRangeBoundariesStruct<iType, HIPTeamMember> {
ThreadVectorRangeBoundariesStruct(const HIPTeamMember, index_type count)
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(index_type count)
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(const HIPTeamMember, index_type arg_begin,
index_type arg_end)
: start(arg_begin), end(arg_end) {}

KOKKOS_INLINE_FUNCTION
ThreadVectorRangeBoundariesStruct(index_type arg_begin, index_type arg_end)
: start(arg_begin), end(arg_end) {}
};

} // namespace Impl
Expand Down
9 changes: 0 additions & 9 deletions core/src/Kokkos_ExecPolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,20 +738,11 @@ struct ThreadVectorRangeBoundariesStruct {
const index_type& count) noexcept
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
constexpr ThreadVectorRangeBoundariesStruct(const index_type& count) noexcept
: start(static_cast<index_type>(0)), end(count) {}

KOKKOS_INLINE_FUNCTION
constexpr ThreadVectorRangeBoundariesStruct(
const TeamMemberType, const index_type& arg_begin,
const index_type& arg_end) noexcept
: start(static_cast<index_type>(arg_begin)), end(arg_end) {}

KOKKOS_INLINE_FUNCTION
constexpr ThreadVectorRangeBoundariesStruct(
const index_type& arg_begin, const index_type& arg_end) noexcept
: start(static_cast<index_type>(arg_begin)), end(arg_end) {}
};

template <class TeamMemberType>
Expand Down

0 comments on commit 0126dcb

Please sign in to comment.