From schnetter at cct.lsu.edu Wed Aug 12 10:46:17 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Wed, 12 Aug 2009 17:46:17 +0200 Subject: [Developers] ExternalLibraries arrangement Message-ID: <8764ECA3-80AC-4AF1-9B8C-66FEA58E975A@cct.lsu.edu> I have created a new arrangement ExternalLibraries, available anonymously from cvs at cvs.cactuscode.org:/arrangements. This arrangement is meant for thorns that wrap (i.e., contain) libraries that are external to Cactus, such as e.g. curl. Having these libraries available as Cactus thorns makes it convenient to distribute and build them on remote machines. These thorns contain configuration scripts that build the libraries into a configuration's scratch directory, using the compilers and options specified for that configuration. The disadvantage compared to system-wide installed libraries is that they exist once per configuration, not once per user or once per system. In many cases, the ease of having the libraries available without hassle makes up for this. This arrangement complements in some sense the the arrangement CactusExternal, which mostly contains configuration scripts for using pre-installed libraries. The idea is that these two arrangements contain thorns with the same names, so that one can quickly decide via a thorn list whether a pre-installed or a self-installed library is used. If you are using any libraries currently in this arrangement (currently F5, curl, flickcurl, and libxml2), then please take a moment to test the libraries and their configuration scripts. Once they have been tested, we can announce them to a wider audience, and add more libraries if there is a demand. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from . -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: This is a digitally signed message part Url : http://www.cactuscode.org/pipermail/developers/attachments/20090812/b2cb5e9a/attachment-0001.bin From schnetter at cct.lsu.edu Fri Aug 14 09:20:09 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Fri, 14 Aug 2009 16:20:09 +0200 Subject: [Developers] Detecting duplicate symbols Message-ID: If two thorns define the same routine or the same global variable, then this is very difficult to detect. This can happen easily, e.g. when one copies a thorn to modify it ? this may be one of the first steps a beginner takes. The enclosed patch analyses the thorn libraries before the final executable is built. It checks for duplicate symbols and aborts if it finds them. It also emits warnings about thorns using symbols from other thorns without declaring this to the flesh (via configuration.ccl). Please give it a try. It may not work on all systems (e.g. when the "nm" command cannot be found), and in this case the check should be omitted; this should not abort the build. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from . Index: make.configuration =================================================================== RCS file: /cactusdevcvs/Cactus/lib/make/make.configuration,v retrieving revision 1.89 diff -u -r1.89 make.configuration --- make.configuration 25 Jan 2008 15:03:12 -0000 1.89 +++ make.configuration 14 Aug 2009 14:19:29 -0000 @@ -126,6 +126,7 @@ # Build the executable $(EXEDIR)$(DIRSEP)$(EXE): $(CONFIG)/make.thornlist $(CONFIG)/ cctki_version.h $(patsubst %,$(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$ (CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX),$(notdir $(THORNS) $ (CACTUSLIBS))) + $(PERL) -s $(CCTK_HOME)/lib/sbin/CheckThornLibs.pl $(EXE) $(THORNS) @echo Creating $(EXE) in $(EXEDIR) from $(THORNS) datetime=`/bin/date +'%Y-%m-%dT%H:%M:%S%z' 2>&1` ; \ if [ $$? != 0 ]; then datetime=`/bin/date` ; fi ; \ -------------- next part -------------- A non-text attachment was scrubbed... Name: CheckThornLibs.pl Type: text/x-perl-script Size: 6969 bytes Desc: not available Url : http://www.cactuscode.org/pipermail/developers/attachments/20090814/b03f2b2f/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: This is a digitally signed message part Url : http://www.cactuscode.org/pipermail/developers/attachments/20090814/b03f2b2f/attachment-0001.bin From knarf at cct.lsu.edu Fri Aug 14 18:25:34 2009 From: knarf at cct.lsu.edu (Frank Loeffler) Date: Fri, 14 Aug 2009 18:25:34 -0500 Subject: [Developers] Detecting duplicate symbols In-Reply-To: References: Message-ID: <20090814232534.GO24677@numrel07.cct.lsu.edu> Hi, On Fri, Aug 14, 2009 at 04:20:09PM +0200, Erik Schnetter wrote: > The enclosed patch analyses the thorn libraries before the final > executable is built. Thanks a lot for this patch, this will with no doubt help in the future. > It checks for duplicate symbols and aborts if > it finds them. It also emits warnings about thorns using symbols > from other thorns without declaring this to the flesh (via > configuration.ccl). I tried it with one of my usual configurations which uses quite a lot of thorns and it seemed to work so far - it built and it also gave (a lot of) warning about undeclared dependencies. I will have to look into quite some of them... thanks, Frank From schnetter at cct.lsu.edu Tue Aug 18 07:35:23 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Tue, 18 Aug 2009 14:35:23 +0200 Subject: [Developers] GetCactus Message-ID: I just updated the GetCactus script with a more generic mechanism to construct repository names from arrangement and thorn names. Patterns @ARRANGEMENT@ and @THORN@ are now replaced by the arrangement and thorn names, respectively. This is slightly more generic than the current T:* mechanism, which replaces a star (*) with both the arrangement and thorn names. This is necessary to check out the AstroGrid thorns from svn. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from . -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: This is a digitally signed message part Url : http://www.cactuscode.org/pipermail/developers/attachments/20090818/8c954dcd/attachment.bin From schnetter at cct.lsu.edu Tue Aug 18 07:57:08 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Tue, 18 Aug 2009 14:57:08 +0200 Subject: [Developers] GetCactus In-Reply-To: References: Message-ID: <9D174A99-309C-4256-A3F3-2ECBFB9AC8F3@cct.lsu.edu> On Aug 18, 2009, at 14:35:23, Erik Schnetter wrote: > I just updated the GetCactus script with a more generic mechanism to > construct repository names from arrangement and thorn names. > Patterns @ARRANGEMENT@ and @THORN@ are now replaced by the > arrangement and thorn names, respectively. This is slightly more > generic than the current T:* mechanism, which replaces a star (*) > with both the arrangement and thorn names. How do I update the GetCactus script on the new web server? The web server looks for a file "/var/www/cvs/Utilities/Scripts/GetCactus" that should presumably be updated somehow. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from . -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: This is a digitally signed message part Url : http://www.cactuscode.org/pipermail/developers/attachments/20090818/01a60fbe/attachment.bin From knarf at cct.lsu.edu Mon Aug 31 10:49:23 2009 From: knarf at cct.lsu.edu (Frank Loeffler) Date: Mon, 31 Aug 2009 10:49:23 -0500 Subject: [Developers] CactusEOS/EOS_Ideal_Fluid Message-ID: <20090831154922.GR18118@numrel07.cct.lsu.edu> Hi, are there objections for making the parameter eos_ideal_fluid_gamma in CactusEOS/EOS_Ideal_Fluid restricted from now private? This way other thorns can use this parameter. Frank