[ROCm] Enable the cuMem CUDA-graph pool offload on ROCm (#59523)
Signed-off-by: aoshen02 <aoshen@inferact.ai> Signed-off-by: indianspeedster <cspandey016@gmail.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: indianspeedster <cspandey016@gmail.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
indianspeedster
parent
bacbbe1878
commit
a6f43e57d6
+4
-2
@@ -1167,7 +1167,8 @@ def _rocm_aiter_fused_allreduce_rmsnorm_quant_per_group_impl(
|
||||
w=weight,
|
||||
eps=epsilon,
|
||||
group_size=group_size,
|
||||
registered=torch.cuda.is_current_stream_capturing(),
|
||||
registered=torch.cuda.is_current_stream_capturing()
|
||||
and ca.enable_register_for_capturing,
|
||||
use_1stage=use_1stage,
|
||||
)
|
||||
assert result is not None
|
||||
@@ -1219,7 +1220,8 @@ def _rocm_aiter_fused_allreduce_rmsnorm_quant_per_group_with_bf16_norm_impl(
|
||||
w=weight,
|
||||
eps=epsilon,
|
||||
group_size=group_size,
|
||||
registered=torch.cuda.is_current_stream_capturing(),
|
||||
registered=torch.cuda.is_current_stream_capturing()
|
||||
and ca.enable_register_for_capturing,
|
||||
use_1stage=use_1stage,
|
||||
emit_bf16=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user