Page 1 of 1
Flags to enable Avx256 and 512 compiling
Posted: Wed Oct 16, 2024 8:52 am
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.
Re: Flags to enable Avx256 and 512 compiling
Posted: Tue Oct 22, 2024 1:49 pm
by hines
I wrote to pkumbhar and hope Pramod can chime in on this.
Re: Flags to enable Avx256 and 512 compiling
Posted: Tue Oct 22, 2024 3:16 pm
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).
Re: Flags to enable Avx256 and 512 compiling
Posted: Thu Oct 24, 2024 2:50 am
by bremen
HI.
Thank you for the explanation.