pytorch/c10
Yu, Guangye 0ec0549823 Introduce a new API torch.xpu.get_per_process_memory_fraction (#165511)
# Motivation
Aligned with other backends, this PR introduces a new API torch.xpu.get_per_process_memory_fraction to allow user to retrieve the allowed memory fraction per a single process.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165511
Approved by: https://github.com/EikanWang, https://github.com/ezyang
ghstack dependencies: #165508, #165509, #165510
2025-10-30 19:30:09 +00:00
..
benchmark Set RUNPATH so installed tests can find the required shared libraries (#136627) 2024-10-25 09:38:08 +00:00
core [Conv1d] Check overflow before we compute padding size. (#162363) 2025-10-29 03:27:20 +00:00
cuda [CUDA] Add experimental green context support for SM carveout (#159104) 2025-10-22 21:38:52 +00:00
hip Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
macros Move c10/macros/Macros.h to headeronly (#158365) 2025-07-16 18:46:52 +00:00
metal [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
mobile [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
test Fix AllocatorConfig parse roundup division bug (#165304) 2025-10-19 15:34:44 +00:00
util [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
xpu Introduce a new API torch.xpu.get_per_process_memory_fraction (#165511) 2025-10-30 19:30:09 +00:00
BUCK.oss Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00
BUILD.bazel
build.bzl Remove non-header-only dep from c10_headers target (#155858) 2025-06-16 21:41:25 +00:00
CMakeLists.txt Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00
ovrsource_defs.bzl Revert "Consistently use c10_ovrsource in arvr mode everywhere (#164128)" 2025-09-30 14:43:52 +00:00