- Create a makefile variable PSCF_OPENMP in set opts, option t
- Create a C preprocessor macro PSCF_OPENMP using -DPSCF_OPENMP
- Create a command line option -t to select the actual number of threads, nthreads.
Make this a required option ifdef PSCF_OPENMP
- In Pscf::Pspc::System<D>::setOptions, conditionally compile
fftw_init_threads()
fftw_plan_with_nthreads(nthreads)
-
See FFTW manual: https://www.fftw.org/fftw3_doc/Usage-of-Multi_002dthreaded-FFTW.html
Proposal: