Skip to content

Commit bc485b3

Browse files
committed
Disabled all parallel reduction functions
1 parent d1b896f commit bc485b3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Core/GPUSpikingCluster.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ void GPUSpikingCluster::advanceSpikeQueue(const SimulationInfo *sim_info, const
510510
checkCudaErrors( cudaDeviceSynchronize() );
511511
}
512512

513+
#if 0
513514
/*
514515
* Add psr of all incoming synapses to summation points.
515516
* (parallel reduction base summation)
@@ -532,6 +533,7 @@ void GPUSpikingCluster::calcSummationMap_1(const SimulationInfo *sim_info, const
532533
// call parallel reduction base summation kernel
533534
calcSummationMapDevice_1 <<< 1, 1 >>> (numTotalSynapses, m_allNeuronsDevice, m_synapseIndexMapDevice, m_allSynapsesDevice, sim_info->maxSynapsesPerNeuron, clr_info->clusterNeuronsBegin);
534535
}
536+
#endif
535537

536538
/*
537539
* Add psr of all incoming synapses to summation points.
@@ -676,6 +678,7 @@ void GPUSpikingCluster::copySynapseIndexMapHostToDevice(const ClusterInfo *clr_i
676678
|* # Global Functions
677679
\* ------------------*/
678680

681+
#if 0
679682
/**
680683
* Calculate the sum of synaptic input to each neuron.
681684
* (use parallel reduction method)
@@ -786,6 +789,7 @@ __global__ void reduceSummationMapKernel(BGSIZE numTotalSynapses, unsigned int s
786789
}
787790
}
788791
}
792+
#endif
789793

790794
/**
791795
* Calculate the sum of synaptic input to each neuron.

Core/GPUSpikingCluster.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class GPUSpikingCluster : public Cluster {
206206
* @param[in] sim_info Pointer to the simulation information.
207207
* @param[in] clr_info Pointer to the cluster information.
208208
*/
209-
virtual void calcSummationMap_1(const SimulationInfo *sim_info, const ClusterInfo *clr_info);
209+
//virtual void calcSummationMap_1(const SimulationInfo *sim_info, const ClusterInfo *clr_info);
210210

211211
/**
212212
* Add psr of all incoming synapses to summation points.
@@ -299,10 +299,10 @@ void initMTGPU(unsigned int seed, unsigned int blocks, unsigned int threads, uns
299299
}
300300

301301
//! Calculate summation point (use parallel reduction method).
302-
extern __global__ void calcSummationMapDevice_1(BGSIZE numTotalSynapses, AllSpikingNeuronsDeviceProperties* allNeuronsDevice, SynapseIndexMap* synapseIndexMapDevice, AllSpikingSynapsesDeviceProperties* allSynapsesDevice, int maxSynapsesPerNeuron, int clusterNeuronsBegin);
302+
//extern __global__ void calcSummationMapDevice_1(BGSIZE numTotalSynapses, AllSpikingNeuronsDeviceProperties* allNeuronsDevice, SynapseIndexMap* synapseIndexMapDevice, AllSpikingSynapsesDeviceProperties* allSynapsesDevice, int maxSynapsesPerNeuron, int clusterNeuronsBegin);
303303

304304
//! Helper kernel function for calcSummationMapDevice.
305-
extern __global__ void reduceSummationMapKernel(BGSIZE numTotalSynapses, unsigned int s, AllSpikingSynapsesDeviceProperties* allSynapsesDevice, AllSpikingNeuronsDeviceProperties* allNeuronsDevice, BGSIZE* indexMap, BGSIZE* synapseCount, BGSIZE* synapseBegin, int clusterNeuronsBegin);
305+
//extern __global__ void reduceSummationMapKernel(BGSIZE numTotalSynapses, unsigned int s, AllSpikingSynapsesDeviceProperties* allSynapsesDevice, AllSpikingNeuronsDeviceProperties* allNeuronsDevice, BGSIZE* indexMap, BGSIZE* synapseCount, BGSIZE* synapseBegin, int clusterNeuronsBegin);
306306

307307
//! Calculate summation point.
308308
extern __global__ void calcSummationMapDevice_2(int totalNeurons,

0 commit comments

Comments
 (0)