PatWalters / rd_filters

A script to run structural alerts using the RDKit and ChEMBL
MIT License
125 stars 37 forks source link

multiprocessing #6

Closed shhong0 closed 4 years ago

shhong0 commented 4 years ago

Hi, I want use only 40 cpu cores. I use --np 40 option. However, rd_filter use all cpu cores. I checked the rd_filters.py file. rd_filters get "np" and assign to "num_cores". However, "num_cores" did not used after. Just repeated mp.cpu_count().

num_cores = cmd_input.get("--np") or mp.cpu_count() num_cores = int(num_cores) print("using %d cores" % num_cores, file=sys.stderr) p = Pool(mp.cpu_count())

Thanks

PatWalters commented 4 years ago

fixed, sorry for the hassles