Skip to content

WIP: ENH: Prototype global options code

Matthew Webster requested to merge enh/init into master

This is a prototype model of code that could be run prior to main for ( essentially ) all FSL C++ projects, without needing to modify code on a per-binary basis.

The specific use case is to disable openblas threading, due to the otherwise need for OMP_WAIT_POLICY=PASSIVE to be set. But this could generally be used for setting critical non-FSL env variables ( used post-entry into main ) or other such situations.

The constructor will run through its actions unless FSL_SKIP_GLOBAL is set to 1

Note due to code being moved round, the static declaration is probably superfluous.

Also it should be namespace Utilities rather than namespace NEWIMAGE

Edited by Matthew Webster

Merge request reports