aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/CodeGenCactus.m
Commit message (Collapse)AuthorAge
* Move many functions from CodeGenCactus.m to new CodeGenKranc.mIan Hinder2013-09-06
|
* CodeGenCactus.m: Rearrange code in InitialiseFDVariablesIan Hinder2013-09-06
|
* CodeGenCactus.m: Simplify InitialiseFDVariablesIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove Fortran FD spacing variable initialisationIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove unused loopOverIntegerIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove commented-out GridLoop functionIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove unused BoundaryWithGhostsLoopIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove unused BoundaryLoopIan Hinder2013-09-06
|
* CodeGenCactus.m: Move vec_load into Vectorisation.mIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove unused MaybeAssignVariableInLoopIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove unused DeclareAssignVariableInloopIan Hinder2013-09-06
|
* CodeGenCactus.m: Move vectorisation for AssignVariableInLoop into ↵Ian Hinder2013-09-06
| | | | Vectorisation.m
* Move several vectorisation functions to Vectorisation.mIan Hinder2013-09-06
|
* CodeGenCactus.m: Move vectoriseExpression into new Vectorisation.m packageIan Hinder2013-09-06
|
* CodeGenCactus.m: Remove comments from generated codeIan Hinder2013-09-05
|
* Do not convert integers to reals when not vectorizingErik Schnetter2013-07-28
|
* Remove outdated comment: IfThen works fine with vectorizationErik Schnetter2013-07-28
|
* Improve vectorization optimizationsErik Schnetter2013-07-28
|
* Use const qualifier before type name, not after type nameErik Schnetter2013-07-28
| | | | E.g. change "int const" to "const int". Blue Gene/Q requires this for vector types.
* Add timing and operation counts to generated loops (but leave commented out)Erik Schnetter2013-07-28
| | | | Commented out; need to find efficient way to enable/disable this.
* Rename loop bounds variablesErik Schnetter2013-01-22
|
* Correct variables names for loop boundsErik Schnetter2013-01-19
|
* Do not generate integer constantsErik Schnetter2013-01-15
| | | | Do not generate integer constants; this may fail if they are arguments to two-argument functions (e.g. pow) with some C++ compilers.
* Use CCTK_ macros instead of LC_ macros for loopingErik Schnetter2013-01-15
|
* Remove some const declarations; these lead to compiler errors with IBM's ↵Erik Schnetter2012-12-21
| | | | compiler on the Blue Gene/Q
* Expand Pi and E to their numerical valuesErik Schnetter2012-12-10
|
* Correct translating Max and Min to CErik Schnetter2012-11-24
|
* Use CCTK_ATTRIBUTE_UNUSED to mark declared variables as unusedIan Hinder2012-11-19
| | | | In automatically-generated code, it is often convenient to declare variables unconditionally, and let the compiler strip the unused definitions out. Eventually it would be good to tidy up Kranc so that it only declares variables which are actually needed, but for the moment it is more important to reduce the number of warnings generated during compilation, to encourage users to read the warnings that might actually indicate a problem.
* Optimise vector division by a scalarErik Schnetter2012-11-14
|
* Correct _Ratio pattern to _RationalErik Schnetter2012-10-25
| | | | Also slightly rewrite kdiv expansion rules.
* Don't convert small integers to reals during code generationErik Schnetter2012-09-13
| | | | Don't convert small integers to reals during code generation. Small integers may be used in if conditions, and converting these to real numbers creates less efficient code.
* Optimise product of sqrt() callsErik Schnetter2012-09-13
|
* Handle Piecewise[] in code generationErik Schnetter2012-09-08
| | | | | Replace Piecewise[] by IfThen[] calls. Unfortunately, this does not work with vectorisation.
* Reinstate dir[] naming work-around; translate Sign[] to isgn()Erik Schnetter2012-08-16
|
* Delay converting integers to realsErik Schnetter2012-08-10
| | | | Delay converting integers to reals, so that the simplification functions still act on integers. This improves the generated code.
* Handle Sign function while vectorisingErik Schnetter2012-07-25
|
* Don't generate large integers; convert them to CCTK_REAL insteadErik Schnetter2012-07-25
|
* Introduce cctk_ash, retire cctk_lsshErik Schnetter2012-07-03
| | | | | | | | | Introduce cctk_ash, describing the process-local array shape that has been allocated. This may be larger than cctk_lsh, the process-local shape that should be used. Retire cctk_lssh and related infrastructure to handle staggered grid functions.
* Correct expanding Scalar[]Erik Schnetter2012-06-13
| | | | | | | Handle kmadd and friends. Do not produce / operator; use ScalarINV instead to prevent problems with integer operands.
* Implement additional vectorisation optimisationsErik Schnetter2012-05-30
| | | | | | | | | When vectorising, break the macros INV, SQR etc. apart, which allows further optimisations, such as avoinding the kmul in kmul[x, kdiv[1, y]]. Combine also operations on ToReal operands, so that these operations are performed on scalars, not on vectors, e.g. kmul[ToReal[omega], ToReal[omege]] now becomes ToReal[omega*omega].
* Compactify cakernel.ccl outputIan Hinder2012-04-16
| | | This makes it easier to count the number of variables in a kernel
* Use ThrowError instead of ThrowErik Schnetter2012-02-20
|
* Revert unintentional changes.Barry Wardell2012-02-11
| | | | These were introduced in 2dc9bd4aeb8c008ffb2679d230d35f4bddf93397.
* MathematicaCompat.h: Restore macrosIan Hinder2012-02-11
| | | These were removed in c9ec36148e7d255006d732fb16c00c6a64cfa4c9, but this causes existing thorns to fail to compile. We keep them here for compatibility.
* Undo hack which broke vectorisation.Barry Wardell2012-02-09
|
* Merge remote-tracking branch 'origin/cakernel'Barry Wardell2012-02-09
|\ | | | | | | | | | | | | | | | | | | Conflicts: Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/MathematicaCompat.h Tools/CodeGen/CalculationFunction.m Tools/CodeGen/CodeGenCactus.m Tools/CodeGen/Differencing.m Tools/CodeGen/KrancThorn.m Tools/CodeGen/Schedule.m
| * CodeGenCactus.m: Add FIXME to code concerning vectorisationIan Hinder2012-02-02
| |
| * CodeGenCactus.m: Some casting - this will break vectorisationIan Hinder2012-02-02
| |
| * Move CalculationMacros to CodeGenCactus.mIan Hinder2012-01-26
| |
| * Remove unused DeclareFDVariablesIan Hinder2012-01-26
| |