 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=How_to_run_MPI_applications</id>
	<title>How to run MPI applications - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=How_to_run_MPI_applications"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=How_to_run_MPI_applications&amp;action=history"/>
	<updated>2026-05-14T13:23:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=How_to_run_MPI_applications&amp;diff=229&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=How_to_run_MPI_applications&amp;diff=229&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:25Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:49, 18 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=How_to_run_MPI_applications&amp;diff=228&amp;oldid=prev</id>
		<title>Lhep at 09:04, 19 April 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=How_to_run_MPI_applications&amp;diff=228&amp;oldid=prev"/>
		<updated>2013-04-19T09:04:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h3&amp;gt; Introduction &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AEC Cluster Tutorial 26/02/2013 room B52 @ 14 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;  List of participants &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dr James Storey (LHEP - AEgIS)                        ====   james.storey@cern.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
Christoph Rudolf von Rohr (LHEP - PhD Cryo)  ====   christoph.rudolfvonrohr@lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Lucian Ancu (LHEP - ATLAS)                        ====   lucian.ancu@lhep.unibe.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
Dr Tamer Tobla (LHEP - EXO)                           ====   tamer.tolba@lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Alexander Rothkopf (ITP)                            ====   rothkopf@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Matthias  Luethi (LHEP - PhD MicroBooNE)       ====   matthias.luethi@lhep.unibe.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
PD Dr Igor Kreslo (LHEP)                                  ====   igor.kreslo@lhep.unibe.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
Lukas  Marti (LHEP - ATLAS)                            ====  lukas.marti@lhep.unibe.ch &lt;br /&gt;
&lt;br /&gt;
Michael Schenk (LHEP)                                     ====  michael.schenk@lhep.unibe.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
Philippe Widmer (ITP-PhD)                              ====  widmer@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Thomas Strauss (LHEP)                               ====  thomas.strauss@lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Markus Moser (ITP- IT)                               ====  moser@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Peter Stoffer (ITP-PhD)                                    ====  stoffer@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Akitaka Ariga (LHEP)                                   ====   akitaka.ariga@lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Dr Debasish Banerjee (ITP)                               ====    dbanerjee@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Lorena Rothen (ITP-PhD)                                  ====   rothen@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Pablo Verges (Unibe-Student)                           ==== pablo.verges@students. unibe.ch&lt;br /&gt;
&lt;br /&gt;
Alireza Ehtesham (LHEP-PhD)                           ==== a.ehtesham@students.unibe.ch (cannot join)&lt;br /&gt;
&lt;br /&gt;
Dr Mitsuro Kimura (LHEP) ====   mitsuhiro.kimura@lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
Prof. Dr Thomas Becher ==== becher@itp.unibe.ch&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;  SLCS and ARC  Installation &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Documentation on SLCS (Short Lived Credential Service) can be found in [http://www.switch.ch/grid/slcs/] and FAQ are in [http://help.switch.ch/grid-slcs/].&lt;br /&gt;
&lt;br /&gt;
To set up slcs download the latest package (slcs-client-&amp;lt;?&amp;gt;.tar.gz) from the repository [https://slcs.switch.ch/download/]&lt;br /&gt;
and unpack in your preferred $SLCS directory (tar xfvz slcs-client-&amp;lt;?&amp;gt;.tar.gz).&lt;br /&gt;
Source and add the bin directory to the $PATH environment:&lt;br /&gt;
      #PATH=$PATH:/path/to/SLCS_directory/bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get the certificate from your $HOME:&lt;br /&gt;
      #slcs-init -i unibe.ch -u username --p12&lt;br /&gt;
      AAI Password: -&amp;gt;type your password&lt;br /&gt;
      New Key Password:    -&amp;gt; you can leave it empty, just pressing enter&lt;br /&gt;
it should create a .globus directory with these files: userkey.pem, usercert.pem and usercred.p12&lt;br /&gt;
&lt;br /&gt;
you can check your SLCS here [https://slcs.switch.ch/], if you do not have access contact: grid@switch.ch&lt;br /&gt;
&lt;br /&gt;
If you do not have access to aec:&lt;br /&gt;
      Load the usercred.p12 in your browser (in Firefox: Preferences-&amp;gt;Advanced-&amp;gt;View certificate -&amp;gt;Import)&lt;br /&gt;
      subscribe to the VO via https://voms.smscg.ch/    clicking on aec&lt;br /&gt;
             &lt;br /&gt;
If you do not have a .voms/ directory make it in your home and create a vomses file with the list of the VO,&lt;br /&gt;
for example for aec:&lt;br /&gt;
      &amp;quot;aec&amp;quot; &amp;quot;voms.smscg.ch&amp;quot; &amp;quot;15027&amp;quot; &amp;quot;/DC=com/DC=quovadisglobal/DC=grid/DC=switch/DC=hosts/C=CH/ST=Zuerich/L=Zuerich/O=SWITCH/CN=voms.smscg.ch&amp;quot; &amp;quot;aec&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To submit the jobs ARC (Advanced Resource Connector) can be used, documentation can be found in [http://www.nordugrid.org/arc/about-arc.html].&lt;br /&gt;
&lt;br /&gt;
To set up ARC (standalone) choose the needed configuration from [http://download.nordugrid.org/standalone.html] and &lt;br /&gt;
download it. Then, for linux,  extract and source:&lt;br /&gt;
      # tar -xvf nordugrid-arc-standalone-11-1.05-2.el5.x86_64.tgz&lt;br /&gt;
      # cd nordugrid-arc-standalone-11.05-2&lt;br /&gt;
      # . ./setup.sh&lt;br /&gt;
The ARC environment should be set, you can make a proxy&lt;br /&gt;
&lt;br /&gt;
      # arcproxy --voms aec&lt;br /&gt;
       Type your password:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To test it:&lt;br /&gt;
      #arctest -c ce.lhep.unibe.ch -J 1&lt;br /&gt;
To check your job go to: [http://giis.smscg.ch/]&lt;br /&gt;
&lt;br /&gt;
To submit a JSDL script ask for the proxy, then submit the job and check the status:&lt;br /&gt;
    &lt;br /&gt;
      # arcsub -c ce.lhep.unibe.ch submit.jsdl&lt;br /&gt;
      # arcstat jobname&lt;br /&gt;
&lt;br /&gt;
An example of submit.jsdl is in the following section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;  JSDL submission file description &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Job Submission Description Language (JSDL) based on XML.&lt;br /&gt;
* Documentation can be found in: Manual: [http://www.gridforum.org/documents/GFD.136.pdf]  Example: [http://wiki.nordugrid.org/index.php/NOX/Client_tutorial] &lt;br /&gt;
 &lt;br /&gt;
Structure of the submission file:&lt;br /&gt;
* Main structure:&lt;br /&gt;
      &amp;lt;JobDefinition&amp;gt;&lt;br /&gt;
           &amp;lt;Jobescription&amp;gt;&lt;br /&gt;
                &amp;lt;JobIdentification...&amp;gt;&lt;br /&gt;
                &amp;lt;Application...&amp;gt;&lt;br /&gt;
                &amp;lt;DataStaging...&amp;gt;&lt;br /&gt;
           &amp;lt;/Jobescription&amp;gt; &lt;br /&gt;
      &amp;lt;/JobDefinition&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* JobIdentification here you can define name, describe the job, etc... The arguments are:&lt;br /&gt;
       &amp;lt;JobIdentification...&amp;gt;&lt;br /&gt;
           &amp;lt;JobName...&amp;gt;&lt;br /&gt;
           &amp;lt;Description...&amp;gt;&lt;br /&gt;
           &amp;lt;JobAnnotation...&amp;gt;&lt;br /&gt;
           &amp;lt;JobProject...&amp;gt;&lt;br /&gt;
       &amp;lt;\JobIdentification...&amp;gt;&lt;br /&gt;
* For example:&lt;br /&gt;
      &amp;lt;JobIdentification&amp;gt;&lt;br /&gt;
          &amp;lt;JobName&amp;gt;My MonteCarlo test job &amp;lt;/JobName&amp;gt;&lt;br /&gt;
      &amp;lt;/JobIdentification&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Application describes all the applications to be executed. &lt;br /&gt;
In the following an example in POSIX (Portable Operating System Interface for Unix) style, using PosixApplication.&lt;br /&gt;
Only few arguments are shown:&lt;br /&gt;
      &amp;lt;Application&amp;gt;&lt;br /&gt;
         &amp;lt;posix:POSIXApplication&amp;gt;&lt;br /&gt;
             &amp;lt;posix:Executable&amp;gt;./executable_name&amp;lt;/posix:Executable&amp;gt;   ---&amp;gt; string specifying the command to be executed&lt;br /&gt;
             &amp;lt;posix:Argument&amp;gt;filename.sh&amp;lt;/posix:Argument&amp;gt;   ---&amp;gt; specify an argument element for the application   &lt;br /&gt;
             &amp;lt;posix:Output&amp;gt;out1.txt&amp;lt;/posix:Output&amp;gt; ---&amp;gt; output file &lt;br /&gt;
             &amp;lt;posix:Error&amp;gt;err.txt&amp;lt;/posix:Error&amp;gt; ---&amp;gt; error file if there are problems with the jobs is filled&lt;br /&gt;
        &amp;lt;/posix:POSIXApplication&amp;gt;&lt;br /&gt;
     &amp;lt;/Application&amp;gt;&lt;br /&gt;
     &lt;br /&gt;
* DataStaging here the files which are &amp;quot;staged in&amp;quot; the execution host or &amp;quot;staged out&amp;quot; are described. Usually, it contains a Source and/or a Target element. The options are:&lt;br /&gt;
      &amp;lt;DataStaging&amp;gt;&lt;br /&gt;
           &amp;lt;FileName ... &amp;gt;&lt;br /&gt;
           &amp;lt;FilesystemName ... &amp;gt;&lt;br /&gt;
           &amp;lt;CreationFlag ... &amp;gt;&lt;br /&gt;
           &amp;lt;DeleteOnTermination ...&amp;gt;&lt;br /&gt;
           &amp;lt;Source ...&amp;gt;&lt;br /&gt;
           &amp;lt;Target ...&amp;gt;&lt;br /&gt;
      &amp;lt;/DataStaging&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* DataStaging example:&lt;br /&gt;
     &lt;br /&gt;
     &amp;lt;DataStaging&amp;gt;&lt;br /&gt;
         &amp;lt;FileName&amp;gt;filename.sh&amp;lt;/FileName&amp;gt;&lt;br /&gt;
         &amp;lt;DeleteOnTermination&amp;gt;true&amp;lt;/DeleteOnTermination&amp;gt;    ---&amp;gt; It is a boolean when it is true the file is deleted after the job terminates or it is staged out&lt;br /&gt;
         &amp;lt;Source&amp;gt;     ---&amp;gt;  location of the file or directory in the remote system&lt;br /&gt;
             &amp;lt;URI&amp;gt;srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/ltpc/vgallo/input/filename.sh&amp;lt;/URI&amp;gt;&lt;br /&gt;
         &amp;lt;/Source&amp;gt;&lt;br /&gt;
    &amp;lt;/DataStaging&amp;gt;&lt;br /&gt;
    &amp;lt;DataStaging&amp;gt;&lt;br /&gt;
       &amp;lt;FileName&amp;gt;out.txt&amp;lt;/FileName&amp;gt;&lt;br /&gt;
       &amp;lt;DeleteOnTermination&amp;gt;true&amp;lt;/DeleteOnTermination&amp;gt;&lt;br /&gt;
       &amp;lt;Target&amp;gt; ---&amp;gt; location where the file is recorded in the remote system&lt;br /&gt;
             &amp;lt;URI&amp;gt;srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/ltpc/vgallo/output/out.txt&amp;lt;/URI&amp;gt;&lt;br /&gt;
       &amp;lt;/Target&amp;gt;&lt;br /&gt;
    &amp;lt;/DataStaging&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;  Tutorial Examples &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Submission jobs example can be found here http://ce.lhep.unibe.ch/vgallo/tutorial/&lt;br /&gt;
in both directories the corresponding submission files. &lt;br /&gt;
In both cases the C++ montecarlo test file is compiled on the grid directly.&lt;br /&gt;
&lt;br /&gt;
- Step1: basic submission file everything is sent to the cluster&lt;br /&gt;
&lt;br /&gt;
- Step2: usage of the Storage Element (in/out data staging)&lt;br /&gt;
&lt;br /&gt;
In order to use the SE use the option -S when requiring the proxy:&lt;br /&gt;
    # arcproxy -S aec&lt;br /&gt;
&lt;br /&gt;
Multi-CPUs:&lt;br /&gt;
&lt;br /&gt;
    # arcsub  -c ce.lhep.unibe.ch -e &amp;#039;&amp;amp;(executable=./montecarlo_testjob)(stdout=parallel.log)(count=2)&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;  FAQ / Possible Errors &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If you get:&lt;br /&gt;
&lt;br /&gt;
    #arcproxy --voms aec&lt;br /&gt;
    Your identity: /DC=ch/DC=switch/DC=slcs/O=Universitaet Bern/CN= YourUserName&lt;br /&gt;
    Enter pass phrase for /path/to/.globus/userkey.pem:&lt;br /&gt;
    Proxy generation failed: Certificate has expired.&lt;br /&gt;
&lt;br /&gt;
You should ask again for the SLCS certificate:&lt;br /&gt;
&lt;br /&gt;
      #slcs-init -i unibe.ch -u username --p12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If you do not have the updated policy (usually the error looks like &amp;quot;ERROR: Failed uploading file: Can&amp;#039;t write to destination - globus_xio_gsi: gss_init_sec_context fail...&amp;quot;)&lt;br /&gt;
      go [http://www.nordugrid.org/documents/arc-client-install.html] click on IGTF and download and untar the &amp;quot;classic&amp;quot; and the &amp;quot;slcs&amp;quot;  tarball &lt;br /&gt;
      from the accredited folder to your nordugrid-arc-standalone-11.05-2/etc/grid-security/certificates/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* There are two relevant paths that affect credential verification  [http://www.nordugrid.org/documents/voms-notes.html] &lt;br /&gt;
  - X509_CERT_DIR   path to CA certificates by default /etc/grid-security/certificates&lt;br /&gt;
  - X509_VOMS_DIR  path to directory containing the voms list /etc/grid-security/voms-dir&lt;br /&gt;
You may want to redefine these:&lt;br /&gt;
      #export X509_CERT_DIR=$HOME/nordugrid-arc-standalone/share/certificates&lt;br /&gt;
      #export X509_VOMS_DIR=$HOME/.vomsdir&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>