[Gate-users] Cluster mode of GATE

Simon Stute gate.stute at gmail.com
Tue Nov 27 11:03:53 CET 2007


Hi Guo,

There is a bug in gjs program on 64 bits architectures ... But it was fixed
a certain time ago. See the following mail by Samuel Burg who fixed this
bug. The patch is attached to this mail.

Simon

---------- Forwarded message ----------
From: Samuel BURG <samuel_burg at yahoo.fr>
Date: 2 juil. 2007 13:34
Subject: [Gate-users] ClusterTools - GJS jobsplitter - x86_64 patch
To: Users Gate <gate-users at lists.healthgrid.org>

Hello Jan De Beenhouwer,
Hello Patrice Descourt,

thank you very much for your work.


Hello everybody else,

This is a merge of 2 patchs for x86_64 arch :

patch from Patrice Descourt
patch from Jan De Beenhouwer

everyone who uses the jobsplitter in 64 bits architecture
should replace 3 lines in src/GateMacFileParser.cc

in GateMacfileParser::AddPWD(G4String key) replace
    unsigned int pos=filename.rfind("/");
by    long unsigned int pos= filename.rfind("/");

in void GateMacfileParser::FormatMacline() replace
    unsigned int size=0;
by    G4int size=0;

in void GateMacfileParser::RemoveExtension() replace
    unsigned int pos= macline.rfind(".rndm");
by    long unsigned int pos=macline.rfind(".rndm");


The diff output :

[lucie at node_2 src]# diff GateMacfileParser.cc.old GateMacfileParser.cc.new
441c441
<  unsigned int pos=filename.rfind("/");
---
>  long unsigned int pos=filename.rfind("/");
519c519
<  unsigned int size=0;
---
>  G4int size=0;
602c602
<  unsigned int pos=macline.rfind(".rndm");//the only valid extension
---
>  long unsigned int pos=macline.rfind(".rndm");//the only valid extension


Best regards,

Samuel BURG

------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20071127/38553a23/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GJS_Patch_x64.tar.gz
Type: application/x-gzip
Size: 6363 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20071127/38553a23/attachment.bin>


More information about the Gate-users mailing list