Multi-core utilization question


Is there a standard or universal command line parameter that facilitates multicore processor utilization in all afni shell-based programs?

Alternatively, can one compile afni to do such automatically?

Kind regards,


“If you’ve thought of it, they’ve likely done it.”


That one?


Hi, James-

Some of the programs in AFNI have been compiled with OpenMP (e.g., 3dQwarp, 3dDWUncert, 3dNwarp*, 3dREMLfit, 3dAllineate, and more), and I think all the distributed binaries have the same functionality with it.

You can set an OMP_NUM_THREADS environment variable in your scripts (or in your ~/.cshrc, ~/.bashrc, etc. files) to control the number of threads used by commands, then.

Is that addressing your question adequately?