Open pramodk opened 1 year ago
I think to fix this issue we can remove the #pragma ivdep
and instead print only #pragma omp simd
and by default add the compilation flag -fiopenmp-simd
in NEURON
/CoreNEURON
for the Intel compiler (and maybe move the same option for GCC in CMake instead of the spack recipe)
On Intel machines, I am installing NEURON+CoreNEURON with the OpenMP variant i.e.
and this produces build time errors like:
Looking quickly with a simple reproducer:
and
i.e.
#pragma ivdep
expects afor
loop but we print#pragma omp simd
in https://github.com/BlueBrain/nmodl/blob/ce25655088cb082b5c0c9dc9cc9a423739799806/src/codegen/codegen_cpp_visitor.cpp#L1119.