I am doing the following:
__shared__ int exForBlockLessThanP = totalElementLessThanPivotEntireBlock[blockIdx.x];
where totalElementLessThanPivotEntireBlock is an array on GPU. The compiler is throwing as error as stated in the title of the question. I really dont understand why this is a problem?