in reply to OpenMP from Perl?

I know, I'm digging up an old post here, but for future reference the answer is, "Perl has supported MPI for many, many years." Search CPAN for Parallel::MPI and Parallel::MPI::Simple (I prefer the latter: much more perlish). In addition, the already mentioned PDL::Parallel::MPI is properly coded but has has a bad Makefile.PL. Fortunately, hand-tweaking the Makefile.PL to get it to work isn't hard at all if you know how to compile a C-based MPI program on your cluster.

Now, I just wish I could get a hold of Darin so I could fix his Makefile.PL and get it passing tests again...

Replies are listed 'Best First'.
Re^2: OpenMP from Perl?
by etj (Priest) on May 23, 2022 at 20:11 UTC
    Note from THE FUTURE: there is now an Alien::OpenMP which helps writing Makefile.PL or maybe PDL .pd files. OpenMP is for shared-memory systems; MPI is a separate, complementary technology for coordinating processing between non-shared-memory systems.

    There are plans https://github.com/PDLPorters/pdl/issues/349 to use OpenMP or a similar technology in PDL, though at the time of writing they are only plans.