craffel/mir_eval

How to control the number of processes mir_eval used.

IMLHF opened this issue · 3 comments

IMLHF commented
How to control the number of processes mir_eval used.
IMLHF commented

When calculating SDR, it will use all CPU cores, taking up too much resources. Can this be controlled?

This is not related to mir_eval. You can control the number of threads being used by numpy using the 'OMP_NUM_THREADS' flag.

IMLHF commented

This is not related to mir_eval. You can control the number of threads being used by numpy using the 'OMP_NUM_THREADS' flag.

good,‘OMP_NUM_THREADS‘ is set to 1 as fast as when set to 64 (there are 64 virtual cores). awkward.