If it's ~2 billion, you're running Python in 32-bit mode. Python on Snow Leopard defaults to a 64-bit executable. If it says "OK" at the end, that means your installation of P圜UDA was successful. If you'd like to be extra-careful, you can run P圜UDA's unit tests: These packages are listed under install_requires in P圜UDA's install control file. Note that this step may automatically look for and, if necessary, install a number of Python packages from the Python package index. Once that works, congratulations! You've successfully built P圜UDA. LDFLAGS.extend()Įnsure that there are no warnings around the line of "different architecture" # if on Snow Leopard, include these lines:ĬXXFLAGS = $ python configure.py -cuda-root=/usr/local/cuda/ $ cd pycuda-VERSION # if you're not there already Don't repeat these commands for the Mac system Python. If you're not sure try import numpy at the Python prompt. $ sudo "easy_install numpy" # this will install numpy using distribute $ sudo "python distribute_setup.py" # this will install distribute Here's an easy way to install it, if you do not have it already: P圜UDA is designed to work in conjunction with numpy, Python's array package. Read below why we want to run python in 32-bit, but basically it has to do with the fact that CUDA 2.2 currently only supports 32-bit mode, and hence P圜UDA as well. It may be in your best interest to stick with this version for now until someone else can show us how to run a newly installed version of MacPython in 32-bit mode. Snow Leopard comes installed with Python 2.6.1. However, Xcode will take 2+ GB of your drive.) (You can install Xcode and not bother installing the C++ compiler and Mac OS SDK separately. (Python 2.5.1 comes pre-installed on Mac OS X should work just fine.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |