fangohr / octopus-in-spack

Develop Octopus in spack (software packaging)
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Speedup compilation for debug variants #61

Closed iamashwin99 closed 1 year ago

iamashwin99 commented 1 year ago

We should pass the no vartracking assignments flag to speed up compilation when debugging required. gcc 10+ fortran does something called Variable Tracking at Assignments This is enabled by default and to disable it we add -fno-var-tracking-assignments. Turns out this reduces the compilation time from 20+ minutes to 5 + minutes, we need to test it, document it and update config wrappers.

iamashwin99 commented 1 year ago

We should also test with -march=native flag