"packaging/vscode:/vscode.git/clone" did not exist on "db31063682bdca68bd8901d13dc2105eb55fe520"
Commit 991e44ee authored by Adam Osewski's avatar Adam Osewski
Browse files

Add __device__ keyword.

parent fd3972ae
......@@ -1176,7 +1176,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);
......@@ -1185,7 +1185,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