Skip to content

EGRID website

Sections
Personal tools
You are here: Home » Documentation » Grid Made Easy » First steps on the grid
Views

Edit history

Edit: -1 of 1
Time: 2007-01-23 17:47:56
Note: /egrid.it/doc/gme/FirstStepsOnTheGrid/edit

changed:
-
First steps on the Grid
=======================

This chapter will show you how to port a simple serial application to
the Grid.  Only very simple use cases (and toy programs!) will be
presented here, just to “get your feet wet”, but you may already do
some very interesting work with just that, and it provides pointers
for the more advanced topics of later chapters.

It is assumed here that you have read the [Certificates and proxies]
chapter, so that you already know how to create a valid proxy
certificate to operate on the Grid.  If you do not, please read 
[Certificates and proxies] and come back here.

.. admonition:: Prerequisite

  *Throughout this chapter, it is assumed that you have created a proxy and that it is still valid.*



Running applications on the Grid: a constant pattern
----------------------------------------------------

Running applications on the Grid is no different from running batch
jobs on a local cluster; if are used to batch jobs, you will find
little differences with batch job processing.  

To run an application on the Grid, one follows always the same series
of steps:

1. gather application and data input your on the UI
    a. (optionally) browse for characteristics of available resources  
    b. compile source code into executable form
    c. (optionally) load input data into the Grid 

2. run the application on the Grid 
    a. schedule the application for execution on the Grid 
    b. monitor execution to know when the application has done

3. download output data

The examples below will follow this pattern.

A detailed breakthrough
~~~~~~~~~~~~~~~~~~~~~~~

.. warning:: FIXME

  *Write this!*

  Draft idea: for each item on the list above, write one paragraph
  explaining what one does at this stage and why.



A serial standalone application
-------------------------------

.. warning:: FIXME

  *Write this!*

  Draft idea: use a program source with hard-coded constants; for
  instance, compute the zero point of some function in an interval
  with the bisection method.  Both the interval endpoints and the
  function could be hard-coded in the source.


Bundling the executable with data
---------------------------------

.. warning:: FIXME

  *Write this!*

  Draft idea: use a program source processing input from a file.  For
  instance, `linear least squares fitting
  <http://mathworld.wolfram.com/LeastSquaresFitting.html>`_: the
  program reads a file containing (x,y) pairs as input, and outputs
  the fitting line slope and intercept.

  If fitting a curve other then a line, matrix algebra should be used,
  which could serve to illustrate how to compile and submit programs
  making use of external function libraries.


 

Powered by Plone

This site conforms to the following standards: