Difference: LHCComputingGrid (15 vs. 16)

Revision 162006-06-19 - AndrasLaszlo

Line: 1 to 1
 Getting access to LHC Computing Grid. One can find a brief introductory material at the RMKI's getting started page, where you can find information on how to get access to LCG. There are also simple examples on that page.

Some more practical information on running a typical job.

Line: 70 to 70
 Note1: unfortunately, I encountered that the lcg-cr action often fails (this should be remedied in future). Therefore, it is convenient to put an lcg-cr command into a checker loop:
Added:
>
>
#!/bin/sh
 RESULT=1
Added:
>
>
TRIES=0
 while (( $RESULT = 0 )) ; do lcg-cr --vo cms -d grid100.kfki.hu -l lfn:/grid/cms/alaszlo/destintation/test_file.txt file:/afs/kfki.hu/home/alaszlo/source/test_file.txt RESULT=$?
Added:
>
>
TRIES=$(($TRIES+1)) if (( $TRIES >= 5 )) ; then echo "lcg-cr failed. Giving up after 5 tries." ; exit 1 ; fi
  if (( $RESULT = 0 )) ; then sleep 1m ; fi done
Line: 95 to 99
 int main(int argc, char *argv[]) { // Open the datafile for reading.
Changed:
<
<
igstream ifile("/grid/cms/alaszlo/some_datafile.dat");
>
>
igstream igfile("/grid/cms/alaszlo/some_datafile.dat");
  // Extract data from your datafile with 'igstream::operator>>' or with 'igstream::read(char*, int)'. // Close the datafile.
Changed:
<
<
ifile.close();
>
>
igfile.close();
  // Open the datafile for writing.
Changed:
<
<
ogstream ofile("/grid/cms/alaszlo/some_datafile.dat");
>
>
ogstream ogfile("/grid/cms/alaszlo/some_datafile.dat");
  // Write data to your datafile with 'ogstream::operator<<' or with 'ogstream::write(char*, int)'. // Close the datafile.
Changed:
<
<
ofile.close();
>
>
ogfile.close();
  // Open the datafile for reading, through a filter program.
Changed:
<
<
igpstream ipfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gunzip --stdout %f");
>
>
igpstream igpfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gunzip --stdout %f");
  // Extract data from your datafile with 'igpstream::operator>>' or with 'igpstream::read(char*, int)'. // Close the datafile.
Changed:
<
<
ipfile.close();
>
>
igpfile.close();
  // Open the datafile for writing, through a filter program.
Changed:
<
<
ogpstream opfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gzip - > %f");
>
>
ogpstream ogpfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gzip - > %f");
  // Write data to your datafile with 'ogpstream::operator<<' or with 'ogpstream::write(char*, int)'. // Close the datafile.
Changed:
<
<
opfile.close();
>
>
ogpfile.close();
  return 0; }
Line: 139 to 143
 -- AndrasLaszlo - 22 Mar 2006
Changed:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="Framework for a simple job" date="1142615719" name="skeleton.tar.gz" path="skeleton.tar.gz" size="18566" user="Main.AndrasLaszlo" version="2"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="Framework for a simple job" date="1150721080" name="skeleton.tar.gz" path="skeleton.tar.gz" size="18809" user="Main.AndrasLaszlo" version="3"
 
META FILEATTACHMENT attr="" autoattached="1" comment="Pipe stream library (consists of a single header file)" date="1142615864" name="pstream.h" path="pstream.h" size="62228" user="Main.AndrasLaszlo" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="Grid i/o stream library (header file)" date="1142615914" name="gstream.h" path="gstream.h" size="3508" user="Main.AndrasLaszlo" version="1"
Changed:
<
<
META FILEATTACHMENT attr="" autoattached="1" comment="Grid i/o stream library (source code)" date="1142615960" name="gstream.cc" path="gstream.cc" size="10390" user="Main.AndrasLaszlo" version="1"
META FILEATTACHMENT attr="" autoattached="1" comment="A simple LCG mass submitter framework" date="1142615756" name="submit.tar.gz" path="submit.tar.gz" size="22353" user="Main.AndrasLaszlo" version="2"
META FILEATTACHMENT attr="" autoattached="1" comment="Copy and register complete directory trees into Logical File Catalogue" date="1142615800" name="lcgcr.sh" path="lcgcr.sh" size="3866" user="Main.AndrasLaszlo" version="2"
>
>
META FILEATTACHMENT attr="" autoattached="1" comment="Grid i/o stream library (source code)" date="1150721108" name="gstream.cc" path="gstream.cc" size="11402" user="Main.AndrasLaszlo" version="2"
META FILEATTACHMENT attr="" autoattached="1" comment="A simple LCG mass submitter framework" date="1150721133" name="submit.tar.gz" path="submit.tar.gz" size="22687" user="Main.AndrasLaszlo" version="3"
META FILEATTACHMENT attachment="lcgcr.sh" attr="" comment="Copy and register complete directory trees into Logical File Catalogue" date="1150721151" name="lcgcr.sh" path="lcgcr.sh" size="4664" stream="lcgcr.sh" user="Main.AndrasLaszlo" version="3"
 
META TOPICMOVED by="AndrasLaszlo" date="1141225754" from="CMS.WebTopicCreator" to="CMS.LHCComputingGrid"
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback