From 37632fd98a4450803d9077bf03e3f3c7b620c116 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Mon, 8 Feb 2021 15:51:59 +0100
Subject: [PATCH] Updating max CUDA grid size.

---
 src/TNL/Cuda/LaunchHelpers.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TNL/Cuda/LaunchHelpers.h b/src/TNL/Cuda/LaunchHelpers.h
index 6e5d3c9757..2b7113f432 100644
--- a/src/TNL/Cuda/LaunchHelpers.h
+++ b/src/TNL/Cuda/LaunchHelpers.h
@@ -15,9 +15,9 @@
 namespace TNL {
 namespace Cuda {
 
-inline constexpr int getMaxGridSize()
+inline constexpr size_t getMaxGridSize()
 {
-   return 65535;
+   return 2147483647;//65535;
 }
 
 inline constexpr int getMaxBlockSize()
-- 
GitLab