/[escript]/branches/ROBW_XPLATFORM/finley/src
ViewVC logotype

Log of /branches/ROBW_XPLATFORM/finley/src

View Directory Listing Directory Listing


Sticky Revision:

Revision 670 - Directory Listing
Modified Sat Mar 25 14:56:39 2006 UTC (14 years, 6 months ago) by robwdcock
+ Changed include paths to no longer require the cpp suffix (missed in earlier
  commit)
+ modified tests so they no longer install to #/lib


Revision 668 - Directory Listing
Modified Sat Mar 25 13:27:27 2006 UTC (14 years, 6 months ago) by robwdcock
+ finally figured out why the tests failed when the python extension libs were
  no longer sym links. The original setup for python extension modules was to
  have sym links in the esys/* directories named, for example escriptcpp.so.
  These would link to the actual libraries libescriptcpp.so. The lib*.so would
  link to each other. When you replaced the symlink with a copy of the lib*.so
  but renamed without the lib you would then get problems. In particular,
  py_tests would suddenly start failing.

  The problem appears (I've not been able to find documentary evidence to this
  case) to be that when, for example, you import bruce, brucecpp.so imports
  lib/libescriptcpp.so (which intialises escript python bits), bruce then
  imports escriptcpp.so (which also initialised escript python bits).

  Whether that is exactly correct or not is of interest but the important bit
  is you appear to get two versions. After thinking about this for a bit and
  reviewing a bunch of other examples of working python modules I noticed a
  pattern. NONE of the other examples ever included more than the python
  wrapper code in the python extension library. Instead they just link to
  the pure C++ library. This would avoid the duplicate load.

  So, I've refactored the code. If you consider escript the pattern in now:
  lib/libescript.so - which has all of escript EXCEPT the python escriptcpp.cpp
  esys/escript/escriptcpp.so - which has ONLY the escriptcpp.cpp and links to
                               lib/libescript.so
  
  Run the tests and low and behold they all pass again.

  Q: Why doesn't this problem occur with sym links?
  A: My guess is that python and the dynamic linker take a look at the actual
     absolute python of libraries to determine if its a "different" library.
     I did fine some discussions that seem to suggest this.

  Q: Why can't you just set LD_LIBRARY_PATH==PYTHONPATH and stick all the
     libs in that directory?
  A: I (in fact we, Peter Hornby was there) tried. With the renaming of the
     python module so it doesn't have a lib prefix you get problems with
     getting the shared libraries to be looked up in LD_LIBRARY_PATH. Do
     the opposite and use lib on the python modules and you have problems
     with windows which doesn't prepend the lib. Various combination
     in between were also tried but you end up in a catch 22 situation so far
     as I could tell

  Please if you know more about the ins and outs of python and shared
  libraries let me know if this isn't true. I'd really like to know if my
  guesses are correct. In any event, the fix is more consistent with the
  patterns I've seen

  Phew! this was a long log message, glad it is on a branch!




Revision 667 - Directory Listing
Modified Fri Mar 24 13:25:00 2006 UTC (14 years, 6 months ago) by robwdcock
+ OUCH ARGHH
+ Okay the wizzy linkHack doesn't work. Not sure why but py_tests fail
when the shared library is on the link line directly (without a -l)

+ Unfortunately we can't figure out how to use -l without it prepending
a lib prefix. Hence all the shareable objects in python now need to be
called libblah.so (and lib will need to be prepended on windows!!!!).
This is not the python way and its very annoying. Why do we have this
problem? Because the C++ shared libraries link with each other.



Revision 666 - Directory Listing
Modified Fri Mar 24 11:29:40 2006 UTC (14 years, 6 months ago) by robwdcock
+ Fix up python esys area:
  + libraries are named without lib prefix on posix platforms (python standard)
  + libraries are now installed into the pyinstall area (python standard)
  + symlinks removed, no longer required
  + LD_LIBRARY_PATH is now optional for PYTHON programs (still required for c++)
+ lib PREFIX removal NOTES:
  + removing the lib prefix is non-standard for the linker. As such we've created a
    custom function sharedLinkHack to specify the .so on the link command line
    (as opposed to using -l<archive> which will prepend the lib). This has a
    a small slight of hand for scons which was being to "helpful". Scons
    verifies that when creating a shared libray all objects specified are
    created shareable (e.g. ensure objects are compiler with -fPIC). Since
    we are linking a .so out of the blue we had to wrap it up in a File note
    and flag it as shared.
    Easily done, once you know how. Thankfully this is all wrapped
    up in a simple function (sharedLinkHack) that looks like ordinary scons so
    you will never know!
    



Revision 658 - Directory Listing
Modified Fri Mar 24 08:39:41 2006 UTC (14 years, 6 months ago) by robwdcock
+Linker is sensitive to library order. mkl_solver needs to be near the
end or paradiso_ goes missing


Revision 655 - Directory Listing
Modified Fri Mar 24 07:55:21 2006 UTC (14 years, 6 months ago) by robwdcock
# fix some lib flags


Revision 651 - Directory Listing
Modified Fri Mar 24 06:44:23 2006 UTC (14 years, 6 months ago) by robwdcock
+Python file now compile and install into pyinstall directory


Revision 648 - Directory Listing
Modified Fri Mar 24 06:04:57 2006 UTC (14 years, 6 months ago) by robwdcock
+Finely unit tests now running in build system

All C++ tests run and compile on Altix, I expect the same result for Linux so you may not see another log message for that.



Revision 624 - Directory Listing
Modified Wed Mar 22 23:00:01 2006 UTC (14 years, 6 months ago) by robwdcock
+ Finish off the header file path changes
+ The C/C++ libraries now all compile on the ivec altix (cognac) using the xplatform build system


Revision 623 - Directory Listing
Modified Wed Mar 22 14:11:03 2006 UTC (14 years, 6 months ago) by robwdcock
Beginning of a fully cross-platform (win32+intelc, linux+g++, altix+intelc)
scons build system
WORK IN PROGRESS NOT COMPLETE
+Incorporates ideas from trunks scons build system and the RW_WIN32 branch
+New Header layout as include/<modulename>, hence the changes to the headers
+Not all modules or features from trunk build system are fully implemented
-Removes need for intermediary SConstruct files - the top SConstruct is more complex but handle cross-platform better AND the SConscript are a LOT simpler
and only differ slightly. It should be simpler to maintain
-Options are now handled via either a: config file supplied on command line, a config file in the scons/hostname_options.py, or as individual command line arguments
-Need help with options: scons -h will give you a list of options and their current settings



Revision 622 - Directory Listing
Modified Wed Mar 22 14:00:08 2006 UTC (14 years, 6 months ago) by robwdcock
Creating a private branch so I can test and verify cross-platform build

Revision 618 - Directory Listing
Modified Wed Mar 22 04:02:38 2006 UTC (14 years, 6 months ago) by gross
Original Path: trunk/finley/src
mmio moced to paso

Revision 616 - Directory Listing
Modified Wed Mar 22 02:46:56 2006 UTC (14 years, 6 months ago) by elspeth
Original Path: trunk/finley/src
Copyright added to more source files.


Revision 584 - Directory Listing
Modified Thu Mar 9 23:03:38 2006 UTC (14 years, 6 months ago) by gross
Original Path: trunk/finley/src
eigenvalues: compiles and passes tests on altix now

Revision 552 - Directory Listing
Modified Wed Feb 22 03:18:07 2006 UTC (14 years, 7 months ago) by gross
Original Path: trunk/finley/src
and more work on saving the element jacobians (please don;t look at the code)

Revision 547 - Directory Listing
Modified Tue Feb 21 06:10:54 2006 UTC (14 years, 7 months ago) by gross
Original Path: trunk/finley/src
solution and reduced solution can have reference numbers now!

Revision 532 - Directory Listing
Modified Wed Feb 15 09:45:53 2006 UTC (14 years, 7 months ago) by gross
Original Path: trunk/finley/src
first steps towards the reuse of the element jacobians

Revision 484 - Directory Listing
Modified Thu Feb 2 02:12:08 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
add remainder of includes to SConscript includes install

Revision 481 - Directory Listing
Modified Wed Feb 1 05:57:50 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
add mechanism to install .h files to inc directories
(still need to specify full lists of .h files to install)


Revision 480 - Directory Listing
Modified Wed Feb 1 05:15:12 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
rationalise #includes and forward declarations


Revision 474 - Directory Listing
Modified Mon Jan 30 04:23:44 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly


Revision 472 - Directory Listing
Modified Fri Jan 27 01:50:59 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
rationalise all #includes


Revision 471 - Directory Listing
Modified Fri Jan 27 01:33:02 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
reorganise finley src tree to remove inc dir and src/finley directory


Revision 468 - Directory Listing
Modified Wed Jan 25 06:50:39 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
reorganised esysUtils to remove inc directory

Revision 467 - Directory Listing
Modified Wed Jan 25 05:43:46 2006 UTC (14 years, 7 months ago) by jgs
Original Path: trunk/finley/src
adjustments to includes to allow for new paso src tree structure

Revision 449 - Directory Listing
Modified Mon Jan 23 03:48:51 2006 UTC (14 years, 8 months ago) by jgs
Original Path: trunk/finley/src
finley source directories now merged into one directory: src/finley


Revision 430 - Directory Listing
Modified Wed Jan 11 06:40:50 2006 UTC (14 years, 8 months ago) by gross
Original Path: trunk/finley/src
ILU has been replicated is called RILU (recursive ILU) now. ILU will now be reimplemented.

Revision 425 - Directory Listing
Modified Tue Jan 10 04:10:39 2006 UTC (14 years, 8 months ago) by gross
Original Path: trunk/finley/src
The sparse solver can be called by paso now. 

the building has been change to reduce some code redundancy:
now all scons SCscripts are importing scons/esys_options.py which
imports platform specific settings. 




Revision 416 - Directory Listing
Modified Wed Jan 4 05:38:35 2006 UTC (14 years, 8 months ago) by gross
Original Path: trunk/finley/src
changes in Paso have been worked in

Revision 402 - Directory Listing
Modified Thu Dec 22 22:46:54 2005 UTC (14 years, 9 months ago) by gross
Original Path: trunk/finley/src
cut of for small values

Revision 352 - Directory Listing
Modified Wed Dec 14 02:21:37 2005 UTC (14 years, 9 months ago) by jgs
Original Path: trunk/finley/src
turns out Install() targets should also be made Default()
targets if you want them to actually reliably work!


Revision 288 - Directory Listing
Modified Fri Dec 2 01:55:04 2005 UTC (14 years, 9 months ago) by jgs
Original Path: trunk/finley/src
now automatically build unit tests as required based on dependencies
between unit tests and libraries


Revision 277 - Directory Listing
Modified Wed Nov 30 04:52:39 2005 UTC (14 years, 9 months ago) by jgs
Original Path: trunk/finley/src
explicitly define dependencies between modules


Revision 273 - Directory Listing
Modified Wed Nov 30 03:30:40 2005 UTC (14 years, 9 months ago) by gross
Original Path: trunk/finley/src
cast to float added. this avoids problems with very small values

Revision 272 - Directory Listing
Modified Wed Nov 30 03:30:30 2005 UTC (14 years, 9 months ago) by gross
Original Path: trunk/finley/src
cast to float added. this avoids problems with very small coodinates.

Revision 271 - Directory Listing
Modified Wed Nov 30 03:27:30 2005 UTC (14 years, 9 months ago) by gross
Original Path: trunk/finley/src
cast to float added. this avoids problems with very small values

Revision 223 - Directory Listing
Modified Thu Nov 24 23:12:13 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
pass in cc/cxx settings from config file

Revision 204 - Directory Listing
Modified Wed Nov 23 04:43:51 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
revised scons files to account for new finley source tree structure


Revision 203 - Directory Listing
Modified Wed Nov 23 04:36:15 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
adjust include file names to allow for new finley source tree structure


Revision 202 - Directory Listing
Modified Wed Nov 23 04:18:39 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
scons builds will now take place in parallel "finley" src dir


Revision 201 - Directory Listing
Modified Wed Nov 23 04:10:21 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
copy finleyC and CPPAdapter to finley and finley/CPPAdapter to
facilitate scons builds


Revision 192 - Directory Listing
Modified Mon Nov 21 04:52:14 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
pass in top level install directory for finley/escript/bruce/paso
libraries when building via top level scons script


Revision 191 - Directory Listing
Modified Mon Nov 21 04:10:12 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
push platform dependent compiler flags and include directories up to library level scons files - these will eventually be brought in from external config files

Revision 190 - Directory Listing
Modified Mon Nov 21 03:27:42 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
pass in value for esysroot and use this to determine include file locations

Revision 188 - Directory Listing
Modified Mon Nov 21 01:20:26 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
explicitly add -fpic option to all compiler options lists
to ensure relocatable code is generated


Revision 182 - Directory Listing
Modified Fri Nov 18 05:07:36 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
first draft of config/construct files for finleyC/finleycpp libraries


Revision 155 - Directory Listing
Modified Wed Nov 9 02:02:19 2005 UTC (14 years, 10 months ago) by jgs
Original Path: trunk/finley/src
move all directories from trunk/esys2 into trunk and remove esys2


Revision 153 - Directory Listing
Modified Tue Oct 25 01:51:20 2005 UTC (14 years, 11 months ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch dev-02 back to main trunk on 2005-10-25


Revision 150 - Directory Listing
Modified Thu Sep 15 03:44:45 2005 UTC (15 years ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch dev-02 back to main trunk on 2005-09-15


Revision 149 - Directory Listing
Modified Thu Sep 1 03:31:39 2005 UTC (15 years ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch dev-02 back to main trunk on 2005-09-01


Revision 148 - Directory Listing
Modified Tue Aug 23 01:24:31 2005 UTC (15 years, 1 month ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch dev-02 back to main trunk on 2005-08-23


Revision 147 - Directory Listing
Modified Fri Aug 12 01:45:47 2005 UTC (15 years, 1 month ago) by jgs
Original Path: trunk/esys2/finley/src
erge of development branch dev-02 back to main trunk on 2005-08-12


Revision 126 - Directory Listing
Modified Fri Jul 22 03:53:08 2005 UTC (15 years, 2 months ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch back to main trunk on 2005-07-22


Revision 123 - Directory Listing
Modified Fri Jul 8 04:08:13 2005 UTC (15 years, 2 months ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch back to main trunk on 2005-07-08


Revision 122 - Directory Listing
Modified Thu Jun 9 05:38:05 2005 UTC (15 years, 3 months ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch back to main trunk on 2005-06-09


Revision 121 - Directory Listing
Modified Fri May 6 04:26:16 2005 UTC (15 years, 4 months ago) by jgs
Original Path: trunk/esys2/finley/src
Merge of development branch back to main trunk on 2005-05-06


Revision 117 - Directory Listing
Modified Fri Apr 1 05:48:57 2005 UTC (15 years, 5 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 115 - Directory Listing
Modified Fri Mar 4 07:12:47 2005 UTC (15 years, 6 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 113 - Directory Listing
Modified Mon Feb 28 07:06:33 2005 UTC (15 years, 6 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 110 - Directory Listing
Modified Mon Feb 14 04:14:42 2005 UTC (15 years, 7 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 108 - Directory Listing
Modified Thu Jan 27 06:21:59 2005 UTC (15 years, 7 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 104 - Directory Listing
Modified Fri Dec 17 07:43:12 2004 UTC (15 years, 9 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 102 - Directory Listing
Modified Wed Dec 15 07:08:39 2004 UTC (15 years, 9 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 100 - Directory Listing
Modified Wed Dec 15 03:48:48 2004 UTC (15 years, 9 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 97 - Directory Listing
Modified Tue Dec 14 05:39:33 2004 UTC (15 years, 9 months ago) by jgs
Original Path: trunk/esys2/finley/src
*** empty log message ***


Revision 82 - Directory Listing
Added Tue Oct 26 06:53:54 2004 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/esys2/finley/src
Initial revision


  ViewVC Help
Powered by ViewVC 1.1.26