![]() Click "Next" and then enter your project URL (" " if you are following this exactly) and then click next again. Next, click "Tools->Attach to project" from the main application menu. Once you have the BOINC manager open, click on "advanced view", when debugging it's best if you stay in this view. So go back to your main PC (not the VM) and open up the BOINC client (install it if needed). The Monte Carlo PI estimation application is waiting for BOINC clients to process it's work units. (lots of information will scroll out and then it will eventually wait) $ python monte_pi.py -n 1 -i boinc -p /home/boincadm/projects/sandbox -c /home/boincadm/pyboinc -a 1.00_python26.zip Now all we have to do is run our application with the boinc interface and point it to our home directory: The project should not be created, but there is no application installed (notice, we never called xadd or update_versions). (you'll be prompted for the root password, which is "rootpw") After it's completed, you should go into your project directory and add it to your cron jobs and to the Apache server: This may take a while to generate the server keys. Note: the following assumes that you have a folder in your home directory called "pyboinc" containing the Python 2.6 binaries and that you have installed PyMW as described in the previous section.įirst, you must setup a project for testing, I will call mine "sandbox" and it will be run on the local address I have given my VM, 192.168.1.190, but you should use whatever address or domain name that is setup on your VM: With PyMW and PyBOINC setup, it's time to run a real BOINC application with PyMW. The following downloads the zip file, extracts it and moves it into a convenient location: Next, you should install PyBOINC to allow your PyMW apps to run without Python being installed on the BOINC client's machines. By default, the example that was run above uses the "generic" interface and does not interact with the BOINC server. This means that PyMW is installed and working properly. While still in the PyMW directory that you extracted above, try the following example distributed with PyMW:Īfter a moment, you should see some vague estimate of PI printed out to the screen. Note that the URL for PyMW was current as of the time of this writing (v0.2), but you should check for and use the newest available release.Īt this point, PyMW is installed and so it's a good idea to test the installation. (the password for root is rootpw, unless you changed it) This can be done with the following commmands: To install PyMW, first download the PyMW package and unzip it into your home folder on the BOINC VM and run the setup script to install it into your local Python "site-packages" directory. Once your server is setup, login to your VM as "boincadm" (with password "boincadmpw" if you haven't changed it). You can start the ssh daemon with the following command: ![]() It's also highly recommended that you ssh into your VM instead of using a VM viewer so that you can copy and paste commands. The following is a brief explanation of how to setup PyMW using the BOINC virtual server.īefore starting this tutorial you should setup the BOINC virtual server following the instructions in the Quick Start guide. The multi-core interface is particularly useful for debugging BOINC applications before submitting them to your project. In addition to BOINC, PyMW also provides non-BOINC interfaces for Condor, MPI, and simple multi-core processing which can be selected using a command line switch. PyMW can also be used without the portable Python interpreter, however, the client is responsible for installing the correct version of Python (2.4 or greater) and adding the interpreter to their system PATH environment variable. Using PyMW in conjunction with a special interpreter (PyBOINC) allows you to send Python scripts as work units and does not require the client to have Python installed. The PyMW framework is a master-worker computing framework for Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |