On Montag, 14. September 2009 14:40:25 GAURAV TIWARI wrote:
> Hi All,
> I am very new to grid computing and want to learn more about it.
> I have an application that gives all the prime numbers in a given range.
>
> From all that I could find,I understand that I can use Globus Toolkit to
> create a grid,and the application could be run on the grid ,with all the
> machines contributing compute power.
>

In priinciple you can do this. As a first step I would suggets to submit ypour 
program to a specifeid grid hist, e.g. by 
using a cpommand as:

[snip]
globusrun-ws -submit -batch -S -Ft PBS -F gridhost-1.org  -o jj -f 
date_script.rsl
[snip]

This is a command, which submits yolu program to a grid host called 
gridhost-1.or. The detailed job description is 
located in date_script.rsl:


[snip]
<?xml version="1.0" encoding="UTF-8"?>
<job>
  <executable>/bin/bash</executable>
  <directory>${GLOBUS_USER_HOME}</directory>
  <argument>${GLOBUS_USER_HOME}/date_script.sh</argument>
  <argument>1</argument>
  <stdout>${GLOBUS_USER_HOME}/date_script.stdout</stdout>
  <stderr>${GLOBUS_USER_HOME}/date_script.stderr</stderr>


  <!--<queue>slaves.q</queue>-->
  <!--<maxWallTime>600</maxWallTime>-->

  <fileStageIn>
      <transfer>
         
<sourceUrl>gsiftp://submithost.org//home/user1/programme/globus-test/date_script.sh</sourceUrl>
         
<destinationUrl>file:///${GLOBUS_USER_HOME}/date_script.sh</destinationUrl>
      </transfer>
  </fileStageIn>

  <fileStageOut>
      <transfer>
         <sourceUrl>file:///${GLOBUS_USER_HOME}/date_script.stdout</sourceUrl>
         
<destinationUrl>gsiftp:/submithost.org//home/user1/date_script.stdout</destinationUrl>
      </transfer>
      <transfer>
         <sourceUrl>file:///${GLOBUS_USER_HOME}/date_script.stderr</sourceUrl>
         
<destinationUrl>gsiftp://submithost.org//home/user1/date_script.stderr</destinationUrl>
      </transfer>
  </fileStageOut>

 <!--<fileCleanUp>
      <deletion>
          <file>file:///${GLOBUS_USER_HOME}/date_script.stdout</file>
      </deletion>
      <deletion>
          <file>file:///${GLOBUS_USER_HOME}/date_script.stderr</file>
      </deletion>
  </fileCleanUp>-->
</job>

[snip]

This is an example for a little script.

What you mustn't forget: before beeing allowed to submit jobs to gridhost, you 
m ust be a member of a Grid Virtual 
Organization which has access to the execution hosts, and you must have also a 
grid certificate.

Cheers

Alexander

Reply via email to