Can't compile axon version of ra25

16 views
Skip to first unread message

Stephen Read

unread,
Sep 5, 2024, 7:47:12 PM9/5/24
to Randall C O'Reilly, emergen...@googlegroups.com

Just tried to do core run on the axon version of ra25 and got this:

(base) Stephen-Reads-M3-Max:ra25 read$ cd /Users/read/CogentCore_leabra\&axon/axon 

(base) Stephen-Reads-M3-Max:axon read$ git clone https://github.com/emer/axon

Cloning into 'axon'...

remote: Enumerating objects: 29986, done.

remote: Counting objects: 100% (10980/10980), done.

remote: Compressing objects: 100% (2237/2237), done.

remote: Total 29986 (delta 9058), reused 10160 (delta 8707), pack-reused 19006 (from 1)

Receiving objects: 100% (29986/29986), 133.41 MiB | 3.15 MiB/s, done.

Resolving deltas: 100% (23745/23745), done.

(base) Stephen-Reads-M3-Max:axon read$ ls

axon

(base) Stephen-Reads-M3-Max:axon read$ cd axon/examples/ra25

(base) Stephen-Reads-M3-Max:ra25 read$ ls

README.md                   ra25.go                                               typegen.go

grunter_ror.py                ra25.py                                               weights_test.go

params.go                        random_5x5_25.tsv

params_good                 random_5x5_25_gen.csv

(base) Stephen-Reads-M3-Max:ra25 read$ core run

go build -ldflags -s -w -X cogentcore.org/core/system.AppVersion=v2.0.0-dev0.2.1-34-g20c7d233 -X cogentcore.org/core/system.CoreVersion=v0.3.3-0.20240828192310-4322e1aa7196 -o /Users/read/CogentCore_leabra&axon/axon/axon/examples/ra25/Ra25

go: downloading cogentcore.org/core v0.3.3-0.20240828192310-4322e1aa7196

go: downloading github.com/emer/emergent/v2 v2.0.0-dev0.1.0.0.20240828203321-c67ca550ce89

go: downloading github.com/goki/vulkan v1.0.8

# github.com/emer/axon/v2/axon

../../axon/logging.go:685:8: undefined: split.AggAllNumericColumns

core run failed: error building app: build: error building for platform darwin/arm64: failed to run "go build -ldflags -s -w -X cogentcore.org/core/system.AppVersion=v2.0.0-dev0.2.1-34-g20c7d233 -X cogentcore.org/core/system.CoreVersion=v0.3.3-0.20240828192310-4322e1aa7196 -o /Users/read/CogentCore_leabra&axon/axon/axon/examples/ra25/Ra25: exit status 1"

 

 

Stephen J. Read

Mendel B. Silberberg Professor of Social Psychology

Department of Psychology

University of Southern California

Los Angeles, CA 90089-1061

Website: www.stephenjread.com

 

 

 

Kai O'Reilly

unread,
Sep 6, 2024, 12:58:54 AM9/6/24
to emergent-users
Yes, we will fix that soon; the module versions are just out of date.

Stephen Read

unread,
Sep 6, 2024, 11:29:04 AM9/6/24
to Kai O'Reilly, emergent-users

Great!

--
You received this message because you are subscribed to the Google Groups "emergent-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emergent-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emergent-users/7c607309-378a-4fd6-8362-47068c279a3cn%40googlegroups.com.

Randall O'Reilly

unread,
Sep 6, 2024, 1:30:45 PM9/6/24
to Stephen Read, O'Reilly Kai, emergent-users
Ok I updated the go.mod for axon and added the emergent wiki install link back to the readmes. Cheers,

- Randy
> core run failed: error building app: build: error building for platform darwin/arm64: failed to run "go build -ldflags -s -w -Xcogentcore.org/core/system.AppVersion=v2.0.0-dev0.2.1-34-g20c7d233 -X cogentcore.org/core/system.CoreVersion=v0.3.3-0.20240828192310-4322e1aa7196 -o /Users/read/CogentCore_leabra&axon/axon/axon/examples/ra25/Ra25: exit status 1"
> Stephen J. Read
> Mendel B. Silberberg Professor of Social Psychology
> Department of Psychology
> University of Southern California
> Los Angeles, CA 90089-1061
> Website: www.stephenjread.com
> --
> You received this message because you are subscribed to the Google Groups "emergent-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emergent-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emergent-users/7c607309-378a-4fd6-8362-47068c279a3cn%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "emergent-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emergent-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emergent-users/BYAPR07MB46792210E92DF5DACD29041CD79E2%40BYAPR07MB4679.namprd07.prod.outlook.com.


Stephen Read

unread,
Sep 6, 2024, 1:35:53 PM9/6/24
to Randall O'Reilly, O'Reilly Kai, emergent-users

Thank you much.

 

 

Stephen J. Read

Mendel B. Silberberg Professor of Social Psychology

Department of Psychology

University of Southern California

Los Angeles, CA 90089-1061

Website: www.stephenjread.com

 

 

 

 

From: Randall O'Reilly <rcore...@gmail.com>
Date: Friday, September 6, 2024 at 10:30
AM
To: Stephen Read <re...@usc.edu>
Cc: O'Reilly Kai <koreil...@gmail.com>, emergent-users <emergen...@googlegroups.com>
Subject: Re: Can't compile axon version of ra25

Ok I updated the go.mod for axon and added the emergent wiki install link back to the readmes.  Cheers,

- Randy

> On Sep 6, 2024, at 8:28

AM, Stephen Read <re...@usc.edu> wrote:


>
> Great!
>   Stephen J. Read
> Mendel B. Silberberg Professor of Social Psychology
> Department of Psychology
> University of Southern California
> Los Angeles, CA 90089-1061

>     From: emergen...@googlegroups.com <emergen...@googlegroups.com> on behalf of Kai O'Reilly <koreil...@gmail.com>
> Date: Thursday, September 5, 2024 at 9:59

PM


> To: emergent-users <emergen...@googlegroups.com>
> Subject: Re: Can't compile axon version of ra25
> Yes, we will fix that soon; the module versions are just out of date.
> On Thursday, September 5, 2024 at 4:47:12

PM UTC-7 re...@usc.edu wrote:


> Just tried to do core run on the axon version of ra25 and got this:
> (base) Stephen-Reads-M3-Max:ra25 read$ cd /Users/read/CogentCore_leabra\&axon/axon

>    --
> You received this message because you are subscribed to the Google Groups "emergent-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emergent-user...@googlegroups.com.


>
> --
> You received this message because you are subscribed to the Google Groups "emergent-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emergent-user...@googlegroups.com.

Randall O'Reilly

unread,
Sep 6, 2024, 1:50:11 PM9/6/24
to Stephen Read, O'Reilly Kai, emergent-users
actually, axon is in a bit of a zombie state right now -- I'm in the middle of a huge GPU update and somehow part of that ended up in the main branch -- I guess I forgot to switch soon enough. So I would stay away from that for now. Cheers,

- Randy

Stephen Read

unread,
Sep 6, 2024, 1:53:57 PM9/6/24
to Randall O'Reilly, O'Reilly Kai, emergent-users

Okay, I was just playing with the axon version of ra25 and it actually seemed slower than the leabra version.

Steve

 

 

Stephen J. Read

Mendel B. Silberberg Professor of Social Psychology

Department of Psychology

University of Southern California

Los Angeles, CA 90089-1061

Website: www.stephenjread.com

 

 

 

 

From: emergen...@googlegroups.com <emergen...@googlegroups.com> on behalf of Randall O'Reilly <rcore...@gmail.com>
Date: Friday, September 6, 2024 at 10:50
AM
To: Stephen Read <re...@usc.edu>
Cc: O'Reilly Kai <koreil...@gmail.com>, emergent-users <emergen...@googlegroups.com>
Subject: Re: Can't compile axon version of ra25

actually, axon is in a bit of a zombie state right now -- I'm in the middle of a huge GPU update and somehow part of that ended up in the main branch -- I guess I forgot to switch soon enough.  So I would stay away from that for now.  Cheers,

- Randy

> On Sep 6, 2024, at 10:35

AM, Stephen Read <re...@usc.edu> wrote:


>
> Thank you much.
>   Stephen J. Read
> Mendel B. Silberberg Professor of Social Psychology
> Department of Psychology
> University of Southern California
> Los Angeles, CA 90089-1061

AM

AM, Stephen Read <re...@usc.edu> wrote:

PM

PM UTC-7 re...@usc.edu wrote:

Randall O'Reilly

unread,
Sep 6, 2024, 3:20:17 PM9/6/24
to Stephen Read, O'Reilly Kai, emergent-users
Indeed, axon has more complex neurons and is slower than leabra. It also needs more neurons because each one is noisier. As we discuss in the textbook, 1 rate code neuron is an approximation to 100 spiking neurons -- fortunately we don't need 100x more neurons in axon, but we do need maybe 2x in general.

btw, axon used to be _much_ slower than leabra because it used to do a synapse-level co-product of sender * recv spiking, to compute calcium that drives learning. I was recently able to use a simpler linear approximation to that computation that speeded it up considerably!

- Randy

> On Sep 6, 2024, at 10:53 AM, Stephen Read <re...@usc.edu> wrote:
>
> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Aptos; panose-1:2 11 0 4 2 2 2 2 2 4;} @font-face {font-family:"Times New Roman \(Body CS\)"; panose-1:2 11 6 4 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; font-size:10.0pt; font-family:"Aptos",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Aptos",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --> Okay, I was just playing with the axon version of ra25 and it actually seemed slower than the leabra version.

Stephen Read

unread,
Sep 6, 2024, 3:22:17 PM9/6/24
to Randall O'Reilly, O'Reilly Kai, emergent-users

Ah, I had thought that because axon could use the GPU it was faster.  But now I understand.

 

 

Stephen J. Read

Mendel B. Silberberg Professor of Social Psychology

Department of Psychology

University of Southern California

Los Angeles, CA 90089-1061

Website: www.stephenjread.com

 

 

 

 

From: Randall O'Reilly <rcore...@gmail.com>
Date: Friday, September 6, 2024 at 12:20
PM
To: Stephen Read <re...@usc.edu>
Cc: O'Reilly Kai <koreil...@gmail.com>, emergent-users <emergen...@googlegroups.com>
Subject: Re: Can't compile axon version of ra25

Indeed, axon has more complex neurons and is slower than leabra.  It also needs more neurons because each one is noisier.  As we discuss in the textbook, 1 rate code neuron is an approximation to 100 spiking neurons -- fortunately we don't need 100x more neurons in axon, but we do need maybe 2x in general.

btw, axon used to be _much_ slower than leabra because it used to do a synapse-level co-product of sender * recv spiking, to compute calcium that drives learning.  I was recently able to use a simpler linear approximation to that computation that speeded it up considerably!

- Randy

> On Sep 6, 2024, at 10:53

AM, Stephen Read <re...@usc.edu> wrote:


>
> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Aptos; panose-1:2 11 0 4 2 2 2 2 2 4;} @font-face {font-family:"Times New Roman \(Body CS\)"; panose-1:2 11 6 4 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; font-size:10.0pt; font-family:"Aptos",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Aptos",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --> Okay, I was just playing with the axon version of ra25 and it actually seemed slower than the leabra version.
> Steve
>    Stephen J. Read
> Mendel B. Silberberg Professor of Social Psychology
> Department of Psychology
> University of Southern California
> Los Angeles, CA 90089-1061

AM

AM, Stephen Read <re...@usc.edu> wrote:

AM

AM, Stephen Read <re...@usc.edu> wrote:

PM

PM UTC-7 re...@usc.edu wrote:

Reply all
Reply to author
Forward
0 new messages