Skip to content

🐛 [BUG] - <title> Inconsistent gradients computed using CPU and GPU #1755

@jlulh

Description

@jlulh

Description

I built the same model and inverted it using CPU and GPU respectively, and the computed kernel is very different. I tested the latest specfem3d version 4.1.1, old versions 4.1.0 and 4.0.0, and they both have problems.

Affected SPECFEM3D version

4.1.1(a5bb135), 4.1.0(89d1601) and 4.0.0(c97d521)

Your software and hardware environment

Ubuntu 22.04.4 LTS; gcc version 11.4.0; MPICH Version: 4.0; cpu: AMD EPYC 9684X; GPU: RTX4090;

Reproduction steps

I used seisflow and specfem3d for the inversion test, and I found that the adjoint sources computed by the CPU and GPU are the same, but the kernel output by xspecfem3d is very different.

Screenshots

No response

Logs

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions