Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Parse DISABLE_CUPTI_LAZY_REINIT by value (#1568) - #1568

Merged
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
sanrise:export-D120578573
Sep 24, 2026
Merged

meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
sanrise:export-D120578573

Conversation

@sanrise

@sanrise sanrise commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Problem

Setting DISABLE_CUPTI_LAZY_REINIT=0 unexpectedly disables lazy CUPTI reinitialization.

Why

The code checks only whether the environment variable exists, so every value is treated as enabled.

Fix

Disable lazy reinitialization only when the variable is set to 1, matching TEARDOWN_CUPTI parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573

@meta-cla meta-cla Bot added the cla signed label Sep 17, 2026
@meta-codesync

meta-codesync Bot commented Sep 17, 2026

Copy link
Copy Markdown

@sanrise has exported this pull request. If you are a Meta employee, you can view the originating Diff in D120578573.

@meta-codesync meta-codesync Bot changed the title Parse DISABLE_CUPTI_LAZY_REINIT by value Parse DISABLE_CUPTI_LAZY_REINIT by value (#1568) Sep 17, 2026
sanrise added a commit to sanrise/kineto that referenced this pull request Sep 17, 2026
Summary:

**Problem**

Setting `DISABLE_CUPTI_LAZY_REINIT=0` unexpectedly disables lazy CUPTI reinitialization.

**Why**

The code checks only whether the environment variable exists, so every value is treated as enabled.

**Fix**

Disable lazy reinitialization only when the variable is set to `1`, matching `TEARDOWN_CUPTI` parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573
sanrise added a commit to sanrise/kineto that referenced this pull request Sep 17, 2026
Summary:

**Problem**

Setting `DISABLE_CUPTI_LAZY_REINIT=0` unexpectedly disables lazy CUPTI reinitialization.

**Why**

The code checks only whether the environment variable exists, so every value is treated as enabled.

**Fix**

Disable lazy reinitialization only when the variable is set to `1`, matching `TEARDOWN_CUPTI` parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573
sanrise added a commit to sanrise/kineto that referenced this pull request Sep 24, 2026
Summary:

**Problem**

Setting `DISABLE_CUPTI_LAZY_REINIT=0` unexpectedly disables lazy CUPTI reinitialization.

**Why**

The code checks only whether the environment variable exists, so every value is treated as enabled.

**Fix**

Disable lazy reinitialization only when the variable is set to `1`, matching `TEARDOWN_CUPTI` parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573
sanrise added a commit to sanrise/kineto that referenced this pull request Sep 24, 2026
Summary:

**Problem**

Setting `DISABLE_CUPTI_LAZY_REINIT=0` unexpectedly disables lazy CUPTI reinitialization.

**Why**

The code checks only whether the environment variable exists, so every value is treated as enabled.

**Fix**

Disable lazy reinitialization only when the variable is set to `1`, matching `TEARDOWN_CUPTI` parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573
Summary:
Pull Request resolved: pytorch#1568

**Problem**

Setting `DISABLE_CUPTI_LAZY_REINIT=0` unexpectedly disables lazy CUPTI reinitialization.

**Why**

The code checks only whether the environment variable exists, so every value is treated as enabled.

**Fix**

Disable lazy reinitialization only when the variable is set to `1`, matching `TEARDOWN_CUPTI` parsing.

Reviewed By: ryanzhang22

Differential Revision: D120578573
@meta-codesync
meta-codesync Bot merged commit f140a13 into pytorch:main Sep 24, 2026
13 checks passed
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Sep 25, 2026
Last one!

Includes the following commits:

- [Kineto] Exclude test on windows (pytorch/kineto#1575) 638a3ef
- Opt-in per-thread activity buffers on the ROCm HIP path (pytorch/kineto#1573) 5dc9333
- Parse DISABLE_CUPTI_LAZY_REINIT by value (pytorch/kineto#1568) f140a13
- [Kineto] Add lookback window and sampling interval as config options (pytorch/kineto#1561) fcda441
- [xpupti] Don't emit ac2g flow endpoints on XPU_DRIVER records (pytorch/kineto#1549) f0df071
Pull Request resolved: #198560
Approved by: https://github.com/sanrise

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant