Commit 5b9ab343 authored by Adam Osewski's avatar Adam Osewski
Browse files

Add __device__ keyword.

parent 4a029960
......@@ -1165,7 +1165,7 @@ struct BlockToCTileMap_LinearKSplit
{
}
__host__ constexpr index_t CalculateGridSize(index_t M, index_t N)
__host__ __device__ constexpr index_t CalculateGridSize(index_t M, index_t N)
{
const auto M0 = math::integer_divide_ceil(M, MPerBlock);
const auto N0 = math::integer_divide_ceil(N, NPerBlock);
......@@ -1174,7 +1174,7 @@ struct BlockToCTileMap_LinearKSplit
}
template <typename CGridDesc_M_N>
__host__ constexpr index_t CalculateGridSize(const CGridDesc_M_N& c_grid_desc_m_n)
__host__ __device__ constexpr index_t CalculateGridSize(const CGridDesc_M_N& c_grid_desc_m_n)
{
return CalculateGridSize(c_grid_desc_m_n.GetLength(I0), c_grid_desc_m_n.GetLength(I1));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment