is there any size limit when using malloc in kernel. here is my code.
int index = threadIdx.x; float* zz_r = (float*)malloc(sizeof(float)* 100000); for(int i=0; i<100000; i++) zz_r[i] = 0; printf("%d\n", index);
when i used size of 10000, i can print all “index”. however, when i increase the size to 100000, i doesn’t print anything. i just to make sure that all threads done with their own initialization.