 	 	for(int k=0; k < gpuNetInfo.numN; k++) {
 		if ( gpuPtrs.neuronFiring[k]) {
 			int i=1;
-//				int pos = atomicAdd(&testVarCnt2, 7);
-//				gpuPtrs.testVar2[pos]   = nid;
-//				gpuPtrs.testVar2[pos+1] = ind_1;
-//				gpuPtrs.testVar2[pos+2] = gpuPtrs.stpu[ind_1];
-//				gpuPtrs.testVar2[pos+3] = gpuPtrs.stpx[ind_1];
-//				gpuPtrs.testVar2[pos+4] = gpuPtrs.stpu[ind];
-//				gpuPtrs.testVar2[pos+5] = gpuPtrs.stpx[ind];
-//				gpuPtrs.testVar2[pos+6] = gpuPtrs.stpu[ind]*gpuPtrs.stpx[ind];
 			retErrVal[nid][i++]= k;
 			for(int t=0; t < 5; t++) {
 				float stp = gpuPtrs.stpu[k]*gpuPtrs.stpx[k];

				int stdp_tDiff = (simTime - gpuPtrs.synSpikeTime[p]);
				if ((stdp_tDiff > 0) && ((stdp_tDiff*gpuGrpInfo[grpId].TAU_LTP_INV)<25)) {
					gpuPtrs.wtChange[p] += STDP(stdp_tDiff, gpuGrpInfo[grpId].ALPHA_LTP, gpuGrpInfo[grpId].TAU_LTP_INV);
//						int val = atomicAdd(&testVarCnt, 4);
//						gpuPtrs.testVar[val]   = 1+nid;
//						gpuPtrs.testVar[val+1] = 1+p-gpuPtrs.cumulativePre[nid];
//						gpuPtrs.testVar[val+2] = 1+gpuPtrs.wtChange[p];
//						gpuPtrs.testVar[val+3] = 1+stdp_tDiff;
				}
			}
		}

__device__ unsigned int spikeCountD1;

// I believe the following are all just test variables
__device__ unsigned int	secD2fireCntTest;
__device__ unsigned int	secD1fireCntTest;

__device__ __constant__ network_ptr_t		gpuPtrs;
__device__ __constant__ network_info_t		gpuNetInfo;
