Skip to content

Commit

Permalink
Rename maxActiveBlocks trait
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelVarvarin committed Aug 11, 2024
1 parent c1d336e commit 36c2af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/alpaka/kernel/TaskKernelGpuUniformCudaHipRt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ namespace alpaka

//! The CUDA/HIP get max active blocks for cooperative kernel specialization.
template<typename TAcc, typename TKernelFnObj, typename TApi, typename TDim, typename TIdx, typename... TArgs>
struct maxActiveBlocks<TAcc, DevUniformCudaHipRt<TApi>, TKernelFnObj, TDim, TIdx, TArgs...>
struct MaxActiveBlocks<TAcc, DevUniformCudaHipRt<TApi>, TKernelFnObj, TDim, TIdx, TArgs...>
{
ALPAKA_FN_HOST static auto getMaxActiveBlocks(
TKernelFnObj const& kernelFnObj,
Expand Down
6 changes: 3 additions & 3 deletions include/alpaka/kernel/Traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace alpaka

//! Get maximum requested blocks for cooperative kernel trait.
template<typename TAcc, typename TDev, typename TKernelFnObj, typename TDim, typename TIdx, typename... TArgs>
struct maxActiveBlocks;
struct MaxActiveBlocks;

//! The trait for getting the size of the block shared dynamic memory of a kernel.
//!
Expand Down Expand Up @@ -207,7 +207,7 @@ namespace alpaka
alpaka::Vec<TDim, TIdx> const& threadElemExtent,
TArgs const&... args) -> int
{
return trait::maxActiveBlocks<TAcc, TDev, TKernelFnObj, TDim, TIdx, TArgs...>::getMaxActiveBlocks(
return trait::MaxActiveBlocks<TAcc, TDev, TKernelFnObj, TDim, TIdx, TArgs...>::getMaxActiveBlocks(
kernelFnObj,
device,
blockThreadExtent,
Expand Down Expand Up @@ -244,7 +244,7 @@ namespace alpaka
{
auto const v_blockThreadExtent = Vec<DimInt<1>, TIdx>(blockThreadExtent);
auto const v_threadElemExtent = Vec<DimInt<1>, TIdx>(threadElemExtent);
return trait::maxActiveBlocks<TAcc, TDev, TKernelFnObj, DimInt<1>, TIdx, TArgs...>::getMaxActiveBlocks(
return trait::MaxActiveBlocks<TAcc, TDev, TKernelFnObj, DimInt<1>, TIdx, TArgs...>::getMaxActiveBlocks(
kernelFnObj,
device,
v_blockThreadExtent,
Expand Down

0 comments on commit 36c2af3

Please sign in to comment.