You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NewStateNeuron handles all initialization at start of new input pattern.// Should already have presented the external input to the network at this point.func (ly*LayerParams) NewStateNeuron(ctx*Context, ni, diuint32, vals*LayerVals) {
SetNrnV(ctx, ni, di, BurstPrv, NrnV(ctx, ni, di, Burst))
SetNrnV(ctx, ni, di, SpkPrv, NrnV(ctx, ni, di, CaSpkD))
This works fine in CPU mode, and is clearly free of an actual coding error, but the GPU version returns 0 for those NrnV access calls of the Burst and CaSpkD variables. It sets the new values just fine, including setting Burst etc, but reading these values just plain fails for reasons that are entirely unclear.
Originally this code was being called from a Pool level dispatch, but changing it to neuron-level did not fix the problem (but is more performant).
There is some kind of read cache breakage here that we need to figure out. Meanwhile, using a temporary solution of just doing the NewState on CPU -- not a big deal performance-wise.
The text was updated successfully, but these errors were encountered:
There is a very strange bug in GPU NewState:
layerparams.go:
This works fine in CPU mode, and is clearly free of an actual coding error, but the GPU version returns 0 for those
NrnV
access calls of theBurst
andCaSpkD
variables. It sets the new values just fine, including setting Burst etc, but reading these values just plain fails for reasons that are entirely unclear.Originally this code was being called from a Pool level dispatch, but changing it to neuron-level did not fix the problem (but is more performant).
There is some kind of read cache breakage here that we need to figure out. Meanwhile, using a temporary solution of just doing the NewState on CPU -- not a big deal performance-wise.
The text was updated successfully, but these errors were encountered: