pytorch/torch/csrc/xpu
Yu, Guangye 753d9bd806 Introduce a new API torch.xpu.set_per_process_memory_fraction (#165510)
# Motivation
Aligned with other backends, this PR introduces a new API `torch.xpu.set_per_process_memory_fraction` to allow user to customize the allowed memory per a single process.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165510
Approved by: https://github.com/EikanWang, https://github.com/ezyang
ghstack dependencies: #165508, #165509
2025-10-29 03:24:52 +00:00
..
Event.cpp [Easy] The event_id of torch.cuda.Event and torch.xpu.Event always is 0 (#151226) 2025-04-26 14:18:22 +00:00
Event.h Make device-specific event inherits from torch.Event (#134845) 2024-10-01 06:28:41 +00:00
Module.cpp Introduce a new API torch.xpu.set_per_process_memory_fraction (#165510) 2025-10-29 03:24:52 +00:00
Module.h
Stream.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
Stream.h