Greetings all - Late last week, Denis Gonzalez asked about parallel processing and PDL. I wrote a lengthy response that essentially said, "You can't do what you want to do." That bothered me. After all, Perl has had a stable threading model since, like, 2002. Why haven't we figured out how to use that for parallel computing with PDL?
So, yesterday I whipped up something that lets you share PDL data across Perl threads. I put it on Github this morning. You can find it at https://github.com/run4flat/PDL-Parallel-threads The module has no tests at the moment (apart from a simple load test) and there is no discussion about why you would use this module instead of other options such as PDL::Parallel::MPI or the built-in pthreading facilities. There certainly are situations in which each of those would be a better choice, but I don't have time at the moment to write about them or write benchmarks comparing different techniques. This is a brand new module, only a couple of days old, so any feedback is welcome. After I've had a chance to write some tests and document PDL::Parallel::threads::SIMD, I'll put it on CPAN. Enjoy! David -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Brian Kernighan _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
