Peano
Loading...
Searching...
No Matches
print-kernel-throughput Namespace Reference

Functions

 read_file (file_name, kernel_name)
 Read one output file.
 
 process_file (filename)
 

Variables

dict params
 
list Kernels = [ "density", "force", "kick1", "kick2", "drift" ]
 
dict KernelName
 
dict ImplementationVariant
 
dict ImplementationVariantName
 
list Colors = [ "#20a040", "#a04020", "#4020a0", "#f0a0f0", "#f06030", "#6030f0" ]
 
list Symbols = [ "-s", "-o", "-^", "-v", "-<", "->" ]
 
int ParticleSize = 272
 
dict L2CacheSizeMap
 

Function Documentation

◆ process_file()

print-kernel-throughput.process_file (   filename)

Definition at line 118 of file print-kernel-throughput.py.

References process_file(), and read_file().

Referenced by process_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_file()

print-kernel-throughput.read_file (   file_name,
  kernel_name 
)

Read one output file.

Parses one input file identified through file_name and returns two lists: the first one is a list of the number of particles, the second gives the timings. We only parse data from one kernel type identified through kernel_name.

Definition at line 37 of file print-kernel-throughput.py.

Referenced by process_file().

Here is the caller graph for this function:

Variable Documentation

◆ Colors

list print-kernel-throughput.Colors = [ "#20a040", "#a04020", "#4020a0", "#f0a0f0", "#f06030", "#6030f0" ]

Definition at line 108 of file print-kernel-throughput.py.

◆ ImplementationVariant

dict print-kernel-throughput.ImplementationVariant
Initial value:
1= {
2 'force': ['(scattered,generic)',
3 '(continuous,generic)',
4 '(continuous,coalesced)', # not really true, but ensures consistent colours in plots
5 '(continuous,local-active-coalesced)',
6 '(continuous,active-local-coalesced)'],
7 'density': ['(scattered,generic)',
8 '(continuous,generic)',
9 '(continuous,coalesced)', # not really true, but ensures consistent colours in plots
10 '(continuous,local-active-coalesced)',
11 '(continuous,active-local-coalesced)'],
12 'kick1': ['(scattered,generic)',
13 '(continuous,generic)',
14 '(continuous,coalesced)'],
15 'kick2': ['(scattered,generic)',
16 '(continuous,generic)',
17 '(continuous,coalesced)'],
18 'drift': ['(scattered,generic)',
19 '(continuous,generic)',
20 '(continuous,coalesced)'],
21}

Definition at line 78 of file print-kernel-throughput.py.

◆ ImplementationVariantName

dict print-kernel-throughput.ImplementationVariantName
Initial value:
1= {
2 '(scattered,generic)': 'generic (scat.)',
3 '(continuous,generic)': 'generic (cont.)',
4 '(continuous,coalesced)': 'coalesced (cont.)',
5 '(continuous,local-active-coalesced)': 'coalesced local-active (cont.)',
6 '(continuous,active-local-coalesced)': 'coalesced active-local (cont.)',
7}

Definition at line 100 of file print-kernel-throughput.py.

◆ KernelName

dict print-kernel-throughput.KernelName
Initial value:
1= {
2 'density' : 'density',
3 'force' : 'force',
4 'kick1' : '1st kick',
5 'kick2' : '2nd kick',
6 'drift' : 'drift',
7}

Definition at line 70 of file print-kernel-throughput.py.

◆ Kernels

list print-kernel-throughput.Kernels = [ "density", "force", "kick1", "kick2", "drift" ]

Definition at line 68 of file print-kernel-throughput.py.

◆ L2CacheSizeMap

dict print-kernel-throughput.L2CacheSizeMap
Initial value:
1= {
2 'gi001': 1024*1024*2*56,
3 'gh003': 1024*1024*72,
4}

Definition at line 113 of file print-kernel-throughput.py.

◆ params

dict print-kernel-throughput.params
Initial value:
1= {
2 "axes.labelsize": 20,
3 "axes.titlesize": 20,
4 "font.size": 20,
5 "font.family": "serif",
6 "legend.fontsize": 20,
7 "xtick.labelsize": 16,
8 "ytick.labelsize": 16,
9 "xtick.direction": "in",
10 "ytick.direction": "in",
11 "xtick.top": True,
12 "ytick.right": True,
13 "xtick.major.width": 1.5,
14 "ytick.major.width": 1.5,
15 "axes.linewidth": 1.5,
16 "axes.labelsize": 20,
17 "text.usetex": True,
18 "figure.dpi": 300,
19 "figure.autolayout": True,
20 # 'figure.figsize': (10,10),
21}

Definition at line 12 of file print-kernel-throughput.py.

◆ ParticleSize

int print-kernel-throughput.ParticleSize = 272

Definition at line 111 of file print-kernel-throughput.py.

◆ Symbols

list print-kernel-throughput.Symbols = [ "-s", "-o", "-^", "-v", "-<", "->" ]

Definition at line 109 of file print-kernel-throughput.py.