Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[orch:dace:X] bad reinterpret cast leads to NaN #4

@FlorianDeconinck

Description

@FlorianDeconinck

In AcousticsDynamics.__call__ a couple of dt are being computed. Namely:

  • dt_acoustics_substep: from the timestep and the n_split
  • dt2: half of the above

When using Float=np.float32 (or PACE_FLOAT_PRECISION=32) those still remains 64-bit float, even when type hinted to Float. This is a DaCe bug. To go around it we use two callbacks (dt_acoustic_substep, and dt2 on self) which forces the type has a return.

DaCe to fix - Pace to remove the workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions