KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVGEBatchJob.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Wed Apr 3 14:15:55 2013
2 //Author: John Frankland,,,
3 
4 #include "KVGEBatchJob.h"
5 #include "TSystem.h"
6 
8 
9 
10 
14 {
15  // Default constructor
16  cpu_scaling_factor = 10;
17 // Bonjour,
18 //
19 // Le scaling factor n'est pas accessible par la commande qstat. La normalisation de la
20 // puissance de calcul en HS06 a été ajoutée à la main par les administrateurs du batch
21 // du centre de calcul.
22 //
23 // La ferme étant assez uniforme, vous pouvez considérer que ce facteur est de 10 pour
24 // l'ensemble des machines. Ainsi en divisant le temps cpu en HS06 par 10 vous obtenez
25 // approximativement le temps cpu consommé (ligne cpu time: 815/36000 dans fichier
26 // toto.o689578). Ce sont les mêmes secondes que vous demandez au qsub.
27 //
28 // Cette approche est approximative mais pour l'instant il n'y a pas mieux.
29 //
30 // Cordialement.
31 //
32 // Pascal Calvat
33 // --
34 // CC-IN2P3 User Support
35 }
36 
37 
38 
41 
43 {
44  // Destructor
45 }
46 
47 
48 
52 
54 {
55  // delete this job:
56  // qdel [jobid]
57  gSystem->Exec(Form("qdel %d", GetJobID()));
58 }
59 
60 
61 
64 
66 {
67  // call qalter on job with given resource list
68  gSystem->Exec(Form("qalter -l %s %d", r.Data(), GetJobID()));
69 }
70 
71 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
ROOT::R::TRInterface & r
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
Int_t GetJobID() const
Definition: KVBatchJob.h:47
Job handled by Grid Engine batch system at CC-IN2P3.
Definition: KVGEBatchJob.h:15
virtual ~KVGEBatchJob()
Destructor.
void AlterResources(TString r)
call qalter on job with given resource list
void DeleteJob()
virtual Int_t Exec(const char *shellcmd)