Skip to content

Commit

Permalink
Drop (unused) Cuda::cuda_internal_maximum_shared_words
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Sep 6, 2023
1 parent c53a95e commit 34aebe5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions core/src/Cuda/Kokkos_Cuda_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,6 @@ std::array<Cuda::size_type, 3> cuda_internal_maximum_grid_count() {
return CudaInternal::singleton().m_maxBlock;
}

Cuda::size_type cuda_internal_maximum_shared_words() {
return CudaInternal::singleton().m_maxSharedWords;
}

Cuda::size_type *cuda_internal_scratch_space(const Cuda &instance,
const std::size_t size) {
return instance.impl_internal_space_instance()->scratch_space(size);
Expand Down Expand Up @@ -797,10 +793,6 @@ void Cuda::impl_initialize(InitializationSettings const &settings) {
Impl::CudaInternal::m_maxWarpCount = Impl::CudaTraits::WarpSize;
}

constexpr auto WordSize = sizeof(size_type);
Impl::CudaInternal::m_maxSharedWords =
cudaProp.sharedMemPerBlock / WordSize;

//----------------------------------
// Maximum number of blocks:

Expand Down
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 @@ -73,7 +73,6 @@ struct CudaTraits {
CudaSpace::size_type cuda_internal_multiprocessor_count();
CudaSpace::size_type cuda_internal_maximum_warp_count();
std::array<CudaSpace::size_type, 3> cuda_internal_maximum_grid_count();
CudaSpace::size_type cuda_internal_maximum_shared_words();

CudaSpace::size_type cuda_internal_maximum_concurrent_block_count();

Expand Down

0 comments on commit 34aebe5

Please sign in to comment.