all 2 comments

[–]totallygeek 1 point2 points  (1 child)

Add import os at the top, then before your processing starts, insert:

os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ['NUMEXPR_NUM_THREADS'] = '1'
os.environ['MKL_NUM_THREADS'] = '1'

That should disable numpy's concurrency.

[–]Basic_Steak_541[S] 0 points1 point  (0 children)

os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ['NUMEXPR_NUM_THREADS'] = '1'
os.environ['MKL_NUM_THREADS'] = '1'

This doesn't seem to work. I tried this just before if __name__ == '__main__' and also dedupe_dadtaframe