# 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.) MacOSX10.4u.sdk from Apple Developer Tools package.A C++ compiler, preferably a Version 4.x gcc.CUDA 2.2 is the latest one to date and it works fine in OS X.a Mac OS 10.5.7 (previous versions should work fine.).Below are the components used to build/use P圜UDA: In fact, you can use the shell (Terminal) for all operations. The process of installing P圜UDA on Mac OS X is very similar to the Linux one. If you're running Snow Leopard (Mac OS 10.6), then you might benefit from following these slightly more up-to-date instructions:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |