@@ -171,22 +171,22 @@ void GPUModel::advance()
171171#endif // PERFORMANCE_METRICS
172172
173173 // calculate summation point
174- calcSummationMap ();
174+ calcSummationPoint ();
175175
176176#ifdef PERFORMANCE_METRICS
177177 cudaLapTime (t_gpu_calcSummation);
178178#endif // PERFORMANCE_METRICS
179179}
180180
181181// / Add psr of all incoming synapses to summation points.
182- void GPUModel::calcSummationMap ()
182+ void GPUModel::calcSummationPoint ()
183183{
184184 // CUDA parameters
185185 const int threadsPerBlock = 256 ;
186186 int blocksPerGrid
187187 = (Simulator::getInstance ().getTotalVertices () + threadsPerBlock - 1 ) / threadsPerBlock;
188188
189- calcSummationMapDevice <<<blocksPerGrid, threadsPerBlock>>>(
189+ calcSummationPointDevice <<<blocksPerGrid, threadsPerBlock>>>(
190190 Simulator::getInstance ().getTotalVertices (), allVerticesDevice_, synapseIndexMapDevice_,
191191 allEdgesDevice_);
192192}
@@ -324,10 +324,10 @@ void GPUModel::copySynapseIndexMapHostToDevice(EdgeIndexMap &synapseIndexMapHost
324324// / @param[in] synapseIndexMapDevice_ Pointer to forward map structures in device memory.
325325// / @param[in] allEdgesDevice Pointer to Synapse structures in device memory.
326326__global__ void
327- calcSummationMapDevice (int totalVertices,
328- AllSpikingNeuronsDeviceProperties *__restrict__ allVerticesDevice,
329- const EdgeIndexMapDevice *__restrict__ synapseIndexMapDevice_,
330- const AllSpikingSynapsesDeviceProperties *__restrict__ allEdgesDevice)
327+ calcSummationPointDevice (int totalVertices,
328+ AllSpikingNeuronsDeviceProperties *__restrict__ allVerticesDevice,
329+ const EdgeIndexMapDevice *__restrict__ synapseIndexMapDevice_,
330+ const AllSpikingSynapsesDeviceProperties *__restrict__ allEdgesDevice)
331331{
332332 // The usual thread ID calculation and guard against excess threads
333333 // (beyond the number of vertices, in this case).
@@ -355,7 +355,7 @@ __global__ void
355355 sum += allEdgesDevice->psr_ [synIndex];
356356 }
357357 // Store summed PSR into this neuron's summation point
358- allVerticesDevice->summationMap_ [idx] = sum;
358+ allVerticesDevice->summationPoints_ [idx] = sum;
359359 }
360360}
361361
0 commit comments