Closed pramodk closed 5 days ago
As mentioned during the dev meeting, I was able to reproduce the issue by compiling whole project with -O1
and only netcvode.cpp
with -O2
.
Just for the record, I was using CMake line as:
cmake .. -DNRN_ENABLE_INTERVIEWS=OFF -DNRN_ENABLE_RX3D=OFF -DCMAKE_INSTALL_PREFIX=`pwd`/install -DNRN_ENABLE_TESTS=OFF -DCMAKE_CXX_FLAGS="-g -O" -DCMAKE_BUILD_TYPE=Custom
and diff:
+set_source_files_properties(path-to-/src/nrncvode/netcvode.cpp PROPERTIES COMPILE_OPTIONS "-O2;")
Anyway, after various debugging attempts and back-and-forths, I realized there is a new NVHPC release. If this seems like a compiler bug, it might be better to try the latest version. And voila - the issue disappears with the nvhpc/24.9!
I will close this as I don't see any need to investigate the old, buggy version.
Context
Neuron fails to run simple tests when build with -O2 and NVHPC compiler. It appears this is also the case since SoA was introduced.
Expected result/behavior
All tests should also pass with -O2
NEURON setup
Minimal working example - MWE
It's existing
test_shape.py
Logs