nest-gpu icon indicating copy to clipboard operation
nest-gpu copied to clipboard

SynapseUpdateFunction

Open never-to-never opened this issue 2 years ago • 1 comments

I am reading your code and have a little doubt. The function SynapseUpdateFunction is defined in the rev_spike.cu file. If I want to get the source node in this function, what should I do? I hope you can reply in your busy schedule, thank you very much! __device__ void SynapseUpdateFunction(int i_spike, int i_target_rev_conn) { unsigned int target = RevSpikeTarget[i_spike]; unsigned int i_conn = TargetRevConnection[target][i_target_rev_conn]; unsigned char syn_group = ConnectionSynGroup[i_conn]; if (syn_group>0) { float *weight = &ConnectionWeight[i_conn]; unsigned short spike_time_idx = ConnectionSpikeTime[i_conn]; unsigned short time_idx = (unsigned short)(NESTGPUTimeIdx & 0xffff); unsigned short Dt_int = time_idx - spike_time_idx; if (Dt_int<MAX_SYN_DT) { SynapseUpdate(syn_group, weight, NESTGPUTimeResolution*Dt_int); } } }

never-to-never avatar Jun 28 '22 08:06 never-to-never

@golosio thanks

never-to-never avatar Jun 28 '22 08:06 never-to-never