Skip to content

Memory offset mismatch during graph replay on A100 (Ampere) — is sm_80 supported? #2

Description

@Esthesia

Dear foundry Team

I have a question about hardware support of foundry.

Question

Is NVIDIA Ampere (sm_80, e.g. A100) a supported target for Foundry's graph capture/replay?
The published examples are all on H100/H200 (sm_90), and on my A100 box libcuda_hook.so
aborts replay with a memory-offset mismatch:

[HOOK] ERROR: Memory offset mismatch during replay
[HOOK]   Current offset: 0x60089a800000 (35240.00 MB from base)
[HOOK]   Expected start: 0x60089a600000 (35238.00 MB from base)
[HOOK]   Difference: 2.00 MB

It is properly working on H100 GPU (compute capability 9.0 (Hopper).
The drift is small (2 MB) and reproducible. Happy to gather more diagnostics
if the team can point at what to capture.

Environment

Component Version
Foundry 0.0.2 (main @ eef1201, "[sglang] Release Foundry 0.0.2")
vLLM 0.22.1.dev0+g0b3ba88f1 (I patched Foundry's modification into vLLM)
PyTorch 2.11.0+cu130
CUDA 13.0
Python 3.11
OS RHEL 9.6 (kernel 5.14.0-570.12.1.el9_6)
GPU 4× NVIDIA A100-SXM4-40GB, compute capability 8.0 (Ampere)
Driver 590.48.01

For reference, I add patchelf --add-needed libtbb.so.2 on
libcuda_hook.so and the four $ORIGIN symlinks for boost/tbb due to the libtbb.so.2 difference in my library.
The shim loads cleanly (from vllm.compilation.foundry_shim import _AVAILABLETrue) and install_hooks resolves. The failure is at replay time, not load time.

Specific questions

  1. Is Ampere (sm_80) intended to work today, or is the hook's
    offset-tracking specific to Hopper's allocator behavior?
  2. If supported, is a 2 MB drift indicative of a known issue (alignment,
    workspace, NCCL buffer placement, …) or something I should investigate further on my side?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions