Skip to main content

addSharedParams

It is common for multiple components or subcomponents in a simulation to share a common subset of parameters. Shared parameter sets can be used to reduce memory usage during simulation construction for such cases. This is particularly helpful for very large simulations where the total state of the simulation graph before it is distributed may exceed the available memory on rank 0. To use shared parameters, register parameters to named sets using addSharedParam() and/or addSharedParams(). Then, subscribe components and subcomponents to the named parameter set(s) using addSharedParamSet(). In case of conflicts, parameters set directly on components take precedence over those provided in shared parameter sets.

Syntax

sst.addSharedParams(set_name, params)

Parameters

  • set_name (type: string) name of the parameter set to add the parameters to. If no set with the name exists, it will be constructed.
  • params (type: dictionary) a Python dict of key, value pairs
  • returns none

Example

import sst

params = { "verbose" : True, "bandwidth" : "50GB/s" }

sst.addSharedParams("shared_set", params)

Import

import sst