mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Add torch.xpu.get_arch_list and torch.xpu.get_gencode_flags for XPU (#137773)
# Motivation Add `torch.xpu.get_arch_list()` and `torch.xpu.get_gencode_flags()` methods that return architecture list and AOT flags to preserve what flags PyTorch XPU was built with. Pull Request resolved: https://github.com/pytorch/pytorch/pull/137773 Approved by: https://github.com/EikanWang, https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
6d8c9be54b
commit
8cda774a03
4
setup.py
4
setup.py
@ -119,6 +119,10 @@
|
||||
# These are not CUDA versions, instead, they specify what
|
||||
# classes of NVIDIA hardware we should generate PTX for.
|
||||
#
|
||||
# TORCH_XPU_ARCH_LIST
|
||||
# specify which XPU architectures to build for.
|
||||
# ie `TORCH_XPU_ARCH_LIST="ats-m150,lnl-m"`
|
||||
#
|
||||
# PYTORCH_ROCM_ARCH
|
||||
# specify which AMD GPU targets to build for.
|
||||
# ie `PYTORCH_ROCM_ARCH="gfx900;gfx906"`
|
||||
|
Reference in New Issue
Block a user