Skip to content
Snippets Groups Projects
Commit 6e7a9fe0 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Revert the value returned from getMaxGridSize

The new value is not correct, it breaks e.g. ParallelFor2D and
ParallelFor3D (for which we had disabled tests by mistake). We need to
separate the max values for x, y and z axes, see the linked Gitlab
issue.

This reverts the commit 37632fd9
parent c4c46d1f
No related branches found
No related tags found
1 merge request!92Mesh tutorial and documentation changes and some refactoring
...@@ -15,9 +15,11 @@ ...@@ -15,9 +15,11 @@
namespace TNL { namespace TNL {
namespace Cuda { namespace Cuda {
inline constexpr size_t getMaxGridSize() // TODO: the max grid size depends on the axis: (x,y,z): (2147483647, 65535, 65535)
// see https://mmg-gitlab.fjfi.cvut.cz/gitlab/tnl/tnl-dev/-/issues/4
inline constexpr std::size_t getMaxGridSize()
{ {
return 2147483647;//65535; return 65535;
} }
inline constexpr int getMaxBlockSize() inline constexpr int getMaxBlockSize()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment