For any following pairwise_distance-OMG-parallelism-is-tough-in-Python thing, @dimpase solved it — so grateful! 
https://github.com/oliviaguest/pairwise_distance/issues/2 …
-
-
cc
@Ducksual if you are curious
1 reply 0 retweets 0 likes -
Does this actually run on multiple cores? I can't figure out where the GIL is being dropped.
1 reply 0 retweets 2 likes -
I assumed it did. What's an easy way to check on my Mac? Hmm.
2 replies 0 retweets 0 likes -
Check whether you get time speedup by increasing # cores. IMHO prototype I posted would not run without GIL, unless re-coded in Cython.
1 reply 0 retweets 2 likes -
I only have two cores sadly. At work I have a ton, so I'll try on Tuesday.
2 replies 0 retweets 1 like -
I'm going to write this thing in serial code in C now just for "fun".
2 replies 0 retweets 1 like -
well, why not pthreads then? https://computing.llnl.gov/tutorials/pthreads/ …
1 reply 0 retweets 1 like -
I expect the Cython version to be not dissimilar to such a C implementation though. With an added bonus of direct integration into Python.
2 replies 0 retweets 1 like -
I bet you just know way way more than me. I would have to learn Cython to do this. I think just a standalone C would work for me.
2 replies 0 retweets 0 likes
Python integration would be amazing though obviously!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.