Flags to enable Avx256 and 512 compiling

Post Reply
bremen
Posts: 52
Joined: Mon Apr 24, 2017 8:15 am
Location: Italy

Flags to enable Avx256 and 512 compiling

Post by bremen »

Hi.

I was looking to this old thread (viewtopic.php?p=14858&hilit=avx#p14858) about compiling NEURON with AVX.
Now that AVX-256 and AVX-512 are common on desktop CPU, I was wondering if it was possible to add a flag, during the configure, to compile NEURON for one instruction set or the other.
hines
Site Admin
Posts: 1710
Joined: Wed May 18, 2005 3:32 pm

Re: Flags to enable Avx256 and 512 compiling

Post by hines »

I wrote to pkumbhar and hope Pramod can chime in on this.
pkumbhar
Posts: 14
Joined: Fri Mar 11, 2016 5:57 am

Re: Flags to enable Avx256 and 512 compiling

Post by pkumbhar »

bremen wrote: Wed Oct 16, 2024 8:52 am Now that AVX-256 and AVX-512 are common on desktop CPU, I was wondering if it was possible to add a flag, during the configure, to compile NEURON for one instruction set or the other.
In NEURON, we don't have auto-vectorization capability (yet). So, even with AVX-256/AVX-512 specific flags, the code generated from MOD files won't use AVX-256/AVX-256 today. This is something we want to fix in near future.

We worked on CoreNEURON library inside NEURON and using compiler like Intel and standard -DCMAKE_BUILD_TYPE=RelWithDebInfo CMake flag is sufficient to generate vectorized code. But again, this is CoreNEURON specific and it doesn't support all features (see Supported features on this page and here is how to).
bremen
Posts: 52
Joined: Mon Apr 24, 2017 8:15 am
Location: Italy

Re: Flags to enable Avx256 and 512 compiling

Post by bremen »

HI.

Thank you for the explanation.
Post Reply