Skip to content

Commit

Permalink
fix usage of Idx to alpaka::Idx
Browse files Browse the repository at this point in the history
on windows, the use of Idx does not resolve to alpaka::Idx,
thus alpaka::Idx should be used directly
  • Loading branch information
ichinii authored and psychocoderHPC committed May 13, 2024
1 parent 1b8146e commit 35ce4a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/alpaka/mem/buf/BufUniformCudaHipRt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace alpaka
"The dimensionality of TExtent and the dimensionality of the TDim template parameter have to be "
"identical!");
static_assert(
std::is_same_v<TIdx, Idx<TExtent>>,
std::is_same_v<TIdx, alpaka::Idx<TExtent>>,
"The idx type of TExtent and the TIdx template parameter have to be identical!");
}

Expand Down
12 changes: 6 additions & 6 deletions include/alpaka/mem/view/ViewSubView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ namespace alpaka
"The dev type of TView and the Dev template parameter have to be identical!");

static_assert(
std::is_same_v<TIdx, Idx<View>>,
std::is_same_v<TIdx, alpaka::Idx<View>>,
"The idx type of TView and the TIdx template parameter have to be identical!");
static_assert(
std::is_same_v<TIdx, Idx<TExtent>>,
std::is_same_v<TIdx, alpaka::Idx<TExtent>>,
"The idx type of TExtent and the TIdx template parameter have to be identical!");
static_assert(
std::is_same_v<TIdx, Idx<TOffsets>>,
std::is_same_v<TIdx, alpaka::Idx<TOffsets>>,
"The idx type of TOffsets and the TIdx template parameter have to be identical!");

static_assert(
std::is_same_v<TDim, Dim<View>>,
std::is_same_v<TDim, alpaka::Dim<View>>,
"The dim type of TView and the TDim template parameter have to be identical!");
static_assert(
std::is_same_v<TDim, Dim<TExtent>>,
std::is_same_v<TDim, alpaka::Dim<TExtent>>,
"The dim type of TExtent and the TDim template parameter have to be identical!");
static_assert(
std::is_same_v<TDim, Dim<TOffsets>>,
std::is_same_v<TDim, alpaka::Dim<TOffsets>>,
"The dim type of TOffsets and the TDim template parameter have to be identical!");

ALPAKA_ASSERT(((m_offsetsElements + m_extentElements) <= getExtents(view)).all());
Expand Down

0 comments on commit 35ce4a6

Please sign in to comment.