CorePy 1.0 – Alpha Release
CorePy is now available via anonymous subversion access. It is currently available for evaluation purposes only.
The alpha release contains full support for programming PowerPC and Cell processors directly from Python on Linux and OS X.
Requirements and Installation
CorePy should work on any Linux or OS X system with a PowerPC
processor. CorePy has been successfully used on the following
configurations:
- G4 and G5 Apple Macs running OS X 10.4 with Python 2.3.5
- G4 and G5 Apple Macs running Fedora Core 5 with Python 2.4.x
- IBM Cell Blades running Fedora Core 5, Python 2.4.x, and libspe v1.1
- Sony PS3s running Yellow Dog Linux, YDL's Python 2.4.x, and libspe v1.2
This is an alpha release of CorePy, provided to get early
feedback from adventurous developers. If the anything does not
work, please make a note of what steps you took and the errors that
were generated and report it to the CorePy team. We will do our best
to help you get a working version of CorePy!
Basic Installation:
Note: This process will be replaced soon with a proper setup.py installation script
- Check out the latest version from subversion using anonymous checkout. The repository is at:
https://svn.osl.iu.edu/svn/corepy/trunk
To check out:
% svn checkout https://svn.osl.iu.edu/svn/corepy/trunk corepy
The top level directory for the working copy will be referred to as $corepy_root. If you used the above command, this will be ./corepy. Note that $corepy_root contains the corepy package directory at $corepy_root/corepy, which using our naming convention leads to the ./corepy/corepy director hierarchy.
- Add the path to the corepy package to your PYTHONPATH:
% export PYTHONPATH=$PYTHONPATH:$corepy_root
- Build and test the native packages for your environment:
# Build and test the PowerPC support package
# (for OSX, run make in .../platform/osx)
% cd $corepy_root
% cd corepy/arch/ppc/platform/linux
% make
% python spre_ppc_linux.py
# Build and test the SPU support package
% cd $corepy_root
% cd corepy/arch/spu/platform/linux
% make
% python spre_spu_linux.py
The tests output some debugging information. They are successful if there are no segmentation faults or bus errors.
- Run the basic examples:
% cd $corepy_root
% cd examples
% python basics.py
% python spu_basics.py
If these complete with no errors, CorePy is correctly installed.