I am trying to declare an huge array on Global Memory:
device float A
but I get this error:
ptxas /tmp/tmpxft_000067c7_00000000-2_XXX.ptx, line 509; ï¿½%Jï¿½Y: Parsing error near ‘-’: syntax error
ptxas ï¿½%Jï¿½Y: Ptx assembly aborted due to errors
make: *** [XXX.o] Error 255
The gpu has 4 GB of global memory, and that would be 2GB so I don’t know why that’s happening.
I’ve also tried:
device float A[536870912u]
But nothing change. It seems like there is a limitation of 2GB for an array (when I change float to char I get no errors).