Limiting simulation functions to one core

Hi everyone,

I'm currently working with the functions
mne.simulation.simulate_sparse_stc() and .simulate_evoked(). It seems that
at least one of these functions makes use of all available CPU cores. Is
that correct? If so, is there a way to limit this to one core? Thanks.

Best wishes,

Hi Jeff,

do you use mkl with anaconda? That would be my guess. You can test that by
trying to import mkl. Checkout the set_num_threads function there.

Hope this helps,
Denis

That function should do it. There is also the MKL_NUM_THREADS environment
variable <https://software.intel.com/en-us/node/528546> you could set
before launching Python.

Eric