How best do I get to use OpenMP on Mac OS X 10.5 and Ubuntu 10.4?

I'm looking at an open-source library (DDS, a double-dummy bridge solver) which in its latest release (2.1.1) adds some very useful multi-tasking functionality requiring either a Windows system or OpenMP (indeed, that latest version won't even compile at all on a non-Windows system without full OpenMP support!-). Ubuntu 10.4 has a package available for an older version (1.1.9), which includes the Python interface to the library (pydds). I contributed to upstream long ago, but I'd really like to use (and contribute a Python interface to;-) the new functionality... but, for that, I need a C compiler and supporting libraries that will give me OpenMP functionality...!

Plus, I need them on both Ubuntu 10.4 and my good old Intel Macs which still run Mac OS X 10.5 (to avoid losing compatibility with my good old PowerPC Macs -- but I'm not holding out for a way to get OpenMP support on those PowerPC Macs too, though of course I'd just love to... the Intel-based ones would suffice!-).

I fully plan to hack as much as needed (and contribute patches upstream of course once I have them working, as I've long done on all open source code I've hacked on, including DDS itself in the past;-) on DDS itself, pydds, and any ancillary functionality for them, but... exactly because of that, I'd just love to avoid having to do a lot more "preliminary" hacking to get OpenMP support (for C) in the first place on the platforms I need it on!-).

So, is there (ideally!-) anything I could just apt-get install for Ubuntu 10.4, and a disk image or Darwinport or whatever for Mac OS X 10.5 at least on Intel processors, that I could use to get started...? I'm of course ready to build-from-sources, patch sources, etc., as needed, but I'd much rather not have to, if I can avoid it...;-).

7
задан Peter Mortensen 2 November 2010 в 20:48
поделиться