Difference between revisions of "Memory usage"

From Serpent Wiki
Jump to: navigation, search
(Optimization modes)
Line 20: Line 20:
  
 
(copied from https://ttuki.vtt.fi/serpent/viewtopic.php?f=24&t=1648)
 
(copied from https://ttuki.vtt.fi/serpent/viewtopic.php?f=24&t=1648)
 +
 +
===Memory optimization mode===
 +
[[Input syntax manual#set_opti|Input syntax: set opti]]
 +
 +
===Double indexing for cross section energy grid look-up===
 +
[[Input syntax manual#set_dix|Input syntax: set dix]]
 +
 +
  
 
== Cross section libraries and energy grid thinning ==
 
== Cross section libraries and energy grid thinning ==
 
== Automated depletion zone division ==
 
== Automated depletion zone division ==
 
== Output files ==
 
== Output files ==

Revision as of 03:25, 6 March 2020

Optimization modes

The optimization modes that affect code performance and memory usage are controlled by option:

set opti <mode>

where <mode> is the optimization mode 1 - 4. You can find some background information on this topic in my presentation at the Dresden meeting:

http://montecarlo.vtt.fi/mtg/2011_Dresden/Serpent_Leppanen2.pdf

I will also present a paper in PHYSOR-2012. In summary, the modes are (from my PHYSOR-paper):

Mode 4: Maximum performance at the cost of memory usage. Suitable for group constant generation and 2D assembly burnup calculations with a limited number of depletion zones. The methodology is essentially the same as that used in Serpent 1.

Mode 3: Similar to mode 4, but lower memory demand. CPU time required by burnup and processing routines increases steeply along with the number of depletion zones, which makes the mode better suited for small burnup calculation problems.

Mode 2: Good performance in burnup calculations involving several thousand depletion zones. Suitable for research reactor applications, but not the best choice for group constant generation.

Mode 1: Minimum optimization and small memory usage. Suitable for very large burnup calculation problems involving tens or hundreds of thousands of depletion zones.

Default is mode 4, and it is pretty much the same as Serpent 1. For large burnup calculation problems I suggest you try mode 1 or 2. Mode 2 reduces memory usage per burnable material, and mode 1 minimizes everything. Mode 3 is usable with small burnup calculation problems in machines with very limited memory.

(copied from https://ttuki.vtt.fi/serpent/viewtopic.php?f=24&t=1648)

Memory optimization mode

Input syntax: set opti

Double indexing for cross section energy grid look-up

Input syntax: set dix


Cross section libraries and energy grid thinning

Automated depletion zone division

Output files