Skip to content

dace_config

DaCeOrchestration

Bases: Enum

Orchestration mode for DaCe

BuildAndRun: compile & save SDFG, then run
Build: compile & save SDFG only
Run: load from .so and run, will fail if .so is not available

DaceConfig

__init__(communicator, backend, tile_nx=0, tile_nz=0, orchestration=None, time=False, single_code_path=False)

Specialize the DaCe configuration for NDSL use.

This class wrongly carries two runtime values:
  • loaded_dace_executables: cache of loaded SDFG & cached arguments
  • performance_collector: runtime timer shared for all runtime call of orchestrate code

Parameters:

Name Type Description Default
communicator Communicator | None

used for setting the distributed caches

required
backend Backend

string for the backend

required
tile_nx int

x/y domain size for a single time

0
tile_nz int

z domain size for a single time

0
orchestration DaCeOrchestration | None

orchestration mode from DaCeOrchestration

None
time bool

trigger performance collection, available to user with performance_collector

False
single_code_path bool

code is expected to be the same on every rank (case of column-physics) and therefore can be compiled once

False