Sep 29, 2020 · I am used to use size_t for variables such as index to large arrays or other quantities that could hold large ineger numbers, in other programming languages such as C. After doing some experiments with CUDA I found that if I use size_t indx = blockIdx.x*blockDim.x +threadIdx.x; I get bad results (for memory elements, whether in global or shared memory) …