unilab.ipc.replay_pipelines.native_h2d¶
Optional native H2D submit helper with graceful fallback.
Pre-validates build prerequisites before attempting JIT compilation.
Falls back to dst.copy_(src, non_blocking=True) on a side stream
when the native extension is unavailable — functionally identical for
pinned-memory transfers (the ROCm path already uses this).
Functions
Attempt to load native extension. |
|
|
Submit one async H2D copy on an existing CUDA stream. |
- unilab.ipc.replay_pipelines.native_h2d.is_available()[source]¶
True if native extension is loaded or loadable.
- Return type:
- unilab.ipc.replay_pipelines.native_h2d.get_diagnostic()[source]¶
Human-readable reason for unavailability.
- Return type: