/[escript]
ViewVC logotype

Revision 2078


Jump to revision: Previous Next
Author: phornby
Date: Thu Nov 20 16:10:10 2008 UTC (10 years, 8 months ago)
Changed paths: 15
Log Message:
Two changes.

1. Move blocktimer from escript to esysUtils.
2. Make it possible to link to paso as a DLL or .so.

Should have no effect on 'nix's

In respect of 1., blocktimer had begun to spring up everywhere, so
for the moment I thought it best to move it to the only other library that
pops up all over the place.

In respect of 2., paso needed to be a DLL in order to use the windows intelc /fast
option, which does aggressive multi-file optimisations. Even in its current form, it either
vectorises or parallelises  hundreds more loops in the esys system than appear in the pragmas.

In achieving 2. I have not been too delicate in adding

PASO_DLL_API

declarations to the .h files in paso/src. Only toward the end of the process of
the conversion, when the number of linker errors dropped below 20, say, did I choosy about what
functions in a header I declared PASO_DLL_API. As a result, there are likely to be many routines
declared as external functions symbols that are in fact internal to the paso DLL. 
Why is this an issue?  It prevents the intelc compiler from getting aggressive on the paso module.
With pain there is sometimes gain. At least all the DLL rules in windows give good
(non-microsoft) compiler writers a chance to really shine.

So, if you should see a PASO_DLL_API on a function in a paso header file,
and think to yourself, "that function is only called in paso, why export it?", then feel free to
delete the PASO_DLL_API export declaration.

Here's hoping for no breakage.....

Changed paths

Path Details
Directorytrunk/escript/src/Data.cpp modified , text changed
Directorytrunk/escript/src/SConscript modified , text changed
Directorytrunk/escript/src/blocktimer.c deleted
Directorytrunk/escript/src/blocktimer.h deleted
Directorytrunk/escript/src/escriptcpp.cpp modified , text changed
Directorytrunk/esysUtils/src/SConscript modified , text changed
Directorytrunk/esysUtils/src/blocktimer.c added
Directorytrunk/esysUtils/src/blocktimer.h added
Directorytrunk/finley/src/Assemble_PDE.c modified , text changed
Directorytrunk/finley/src/CPPAdapter/MeshAdapter.cpp modified , text changed
Directorytrunk/finley/src/CPPAdapter/MeshAdapterFactory.cpp modified , text changed
Directorytrunk/paso/src/SConscript modified , text changed
Directorytrunk/paso/src/Solver.c modified , text changed
Directorytrunk/paso/src/SolverFCT_solve.c modified , text changed
Directorytrunk/scons/windows_intelc_options.py modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.26