Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/183067
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8684c03 with merge base 7ee00f1 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR #171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR #171662 and pass after the PR lands.
|
Successfully rebased |
ee11617 to
8684c03
Compare
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…orch#183067) Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR pytorch#171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR pytorch#171662 and pass after the PR lands. Pull Request resolved: pytorch#183067 Approved by: https://github.com/ngimel
…orch#183067) Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR pytorch#171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR pytorch#171662 and pass after the PR lands. Pull Request resolved: pytorch#183067 Approved by: https://github.com/ngimel
…orch#183067) Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR pytorch#171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR pytorch#171662 and pass after the PR lands. Pull Request resolved: pytorch#183067 Approved by: https://github.com/ngimel
…orch#183067) Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR pytorch#171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR pytorch#171662 and pass after the PR lands. Pull Request resolved: pytorch#183067 Approved by: https://github.com/ngimel
…orch#183067) Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR pytorch#171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size: 1. test_host_memory_stats_active_after_free_no_events Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled. 2. test_host_memory_stats_active_after_event_drain Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative. Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths. Verified that both tests fail on the parent commit of PR pytorch#171662 and pass after the PR lands. Pull Request resolved: pytorch#183067 Approved by: https://github.com/ngimel
Two regression tests in TestCuda for host_memory_stats() bookkeeping issues that were resolved by PR #171662 ("Add configurable threshold to avoid power-of-two rounding for large pinned memory allocations") via the introduction of the maybe_cache_block helper that consolidated free()'s no-events fast path and process_events_for_specific_size:
test_host_memory_stats_active_after_free_no_events
Asserts active_bytes.current and active_requests.current return to 0 after a plain pin-and-drop cycle. Without the fix, free()'s no-events fast path pushed the block back to the free list without decrementing the active bucket stats, so the counters grew monotonically on every cycle even though the memory was correctly recycled.
test_host_memory_stats_active_after_event_drain
Asserts the same after a pin / non_blocking H2D / drop / empty_cache sequence, plus that active_bytes.freed and active_requests.freed are non-negative. process_events_for_specific_size used to decrement active_bytes_bucket_stats by its int64_t size parameter, which is -1 when invoked via process_events. Subtracting -1 quietly added a byte per drained event and pushed active_bytes.freed negative.
Both tests use 2 iterations to exercise both the new-slab (add_allocated_block) and cache-reuse (get_free_block) allocation paths.
Verified that both tests fail on the parent commit of PR #171662 and pass after the PR lands.