Skip to content

Commit

Permalink
Drop unused HIPInternal::m_maxSharedWords data member
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Sep 6, 2023
1 parent 53b2b22 commit 6aaf373
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/src/Cuda/Kokkos_Cuda_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class CudaInternal {
inline static unsigned m_multiProcCount = 0;
inline static unsigned m_maxWarpCount = 0;
inline static std::array<size_type, 3> m_maxBlock = {0, 0, 0};
inline static unsigned m_maxSharedWords = 0;
inline static int m_shmemPerSM = 0;
inline static int m_maxShmemPerBlock = 0;
inline static int m_maxBlocksPerSM = 0;
Expand Down
2 changes: 0 additions & 2 deletions core/src/HIP/Kokkos_HIP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ void HIP::impl_initialize(InitializationSettings const& settings) {
if (Impl::HIPTraits::WarpSize < Impl::HIPInternal::m_maxWarpCount) {
Impl::HIPInternal::m_maxWarpCount = Impl::HIPTraits::WarpSize;
}
constexpr int WordSize = sizeof(size_type);
Impl::HIPInternal::m_maxSharedWords = hipProp.sharedMemPerBlock / WordSize;

//----------------------------------
// Maximum number of blocks
Expand Down
1 change: 0 additions & 1 deletion core/src/HIP/Kokkos_HIP_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class HIPInternal {
inline static unsigned m_maxWarpCount = 0;
inline static std::array<size_type, 3> m_maxBlock = {0, 0, 0};
inline static unsigned m_maxWavesPerCU = 0;
inline static unsigned m_maxSharedWords = 0;
inline static int m_shmemPerSM = 0;
inline static int m_maxShmemPerBlock = 0;
inline static int m_maxThreadsPerSM = 0;
Expand Down

0 comments on commit 6aaf373

Please sign in to comment.