Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions warp/_src/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3858,6 +3858,12 @@ def __init__(self, runtime, alias, ordinal=-1, is_primary=False, context=None):
if warp.config.enable_mempools_at_init:
# enable if supported
self.is_mempool_enabled = self.is_mempool_supported
elif self.is_hip and self.is_mempool_supported:
# HIP/ROCm: enable mempool by default when graph capture is supported
# (hipGraph requires mempool for in-capture allocations).
# Previously disabled due to hipMemsetAsync unreliability, but
# graph capture is now validated on ROCm 7.2 (Warp PR #15).
self.is_mempool_enabled = True
else:
# disable by default
self.is_mempool_enabled = False
Expand Down