Re: [Rdkit-discuss] Multiprocessing/Threading in Python/Rdkit

2021-06-11 Thread Jin Pan
Hey Philipp, Python3 introduces the standard concurrent.futures package which allows for really straightforward multiprocessing - https://docs.python.org/3/library/concurrent.futures.html#processpoolexecutor-example. Because the futures run on a separate process, you'll have to send smiles (or som

Re: [Rdkit-discuss] INCHI-API Mutex

2020-10-07 Thread Jin Pan
Hi Greg, Let's continue this conversation at https://github.com/rdkit/rdkit/pull/3474 :) On Tue, 6 Oct 2020 at 19:38, Greg Landrum wrote: > Jin, > > On Tue, Oct 6, 2020 at 10:01 PM Jin Pan wrote: > >> >> I can take a look at removing the mutex and testing. >&

Re: [Rdkit-discuss] INCHI-API Mutex

2020-10-06 Thread Jin Pan
` and enable `testMultiThread` (s/#if 0/#if 1 in main())?. Also, how can we run the tests with asan/msan/tsan and friends? Best, Jin On Mon, 5 Oct 2020 at 20:53, Greg Landrum wrote: > Hi Jin Pan, > > That's a great question. It sounds like we probably can remove the mutex, > and it&

[Rdkit-discuss] INCHI-API Mutex

2020-10-05 Thread Jin Pan
er that library to be thread unsafe? Best, Jin Pan ___ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss