---
id: pr-pytorch-163097
repo: pytorch/pytorch
pr: 163097
title: '[Cherry Pick][Graph Partition] allow sharing default device context'
author: BoyuanFeng
date: '2025-09-19'
url: https://github.com/pytorch/pytorch/pull/163097
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types: []
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: b1aae80953bbe6cfa17465dda47cae479c34f793
inclusion_reason: kernel file changes
changed_paths:
- test/inductor/test_torchinductor.py
- torch/_inductor/codegen/wrapper.py
- torch/_inductor/scheduler.py
- torch/_inductor/utils.py
head_ref_oid: 662f366964d45265fc72b09c3ad5dd2b543e1ca7
artifact_dir: evidence/pull-bundles/pytorch/gh-163097
---
# [Cherry Pick][Graph Partition] allow sharing default device context

- Repository: `pytorch/pytorch`
- PR: [163097](https://github.com/pytorch/pytorch/pull/163097)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `test/inductor/test_torchinductor.py`
- `torch/_inductor/codegen/wrapper.py`
- `torch/_inductor/scheduler.py`
- `torch/_inductor/utils.py`

## Evidence Bundle

`evidence/pull-bundles/pytorch/gh-163097`
