Skip to content

Commit

Permalink
all gpu kernels compiling on CPU and GPU!
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 2, 2024
1 parent c863b80 commit 99e08a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion axon/network.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion axon/network.goal
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func DWtSyn(i uint32) { //gosl:kernel
pti := SynapseIxs[SynPathIndex, syni]
si := SynapseIxs[SynSendIndex, syni]
ri := SynapseIxs[SynRecvIndex, syni]
Paths[pti].DWtSyn(ctx, syni, si, ri, di)
Paths[pti].DWtSyn(ctx, &Layers[Paths[pti].Indexes.RecvLayer], syni, si, ri, di)
}

// DWtFromDiSyn is the kernel over Synapses (not * Data) to
Expand Down
3 changes: 1 addition & 2 deletions axon/pathparams.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions axon/pathparams.goal
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,10 @@ func (pt *PathParams) SendSpike(ctx *Context, ni, di, lni uint32) {
// DWtSyn is the overall entry point for weight change (learning) at given synapse.
// It selects appropriate function based on pathway type.
// rpl is the receiving layer SubPool
func (pt *PathParams) DWtSyn(ctx *Context, syni, si, ri, di uint32) {
func (pt *PathParams) DWtSyn(ctx *Context, rlay *LayerParams, syni, si, ri, di uint32) {
if pt.Learn.Learn == 0 {
return
}
rlay := &Layers[pt.Indexes.RecvLayer]
isTarget := rlay.Acts.Clamp.IsTarget > 0
spi := NeuronIxs[NrnSubPool, ri]
pi := rlay.PoolIndex(spi)
Expand Down

0 comments on commit 99e08a4

Please sign in to comment.