pytorch/torch/csrc/xpu
Yu, Guangye f4ff063c33 Add attributes to xpu device prop (#121898)
# Motivation
Add some attributes to `XPUDeviceProp` and expose them via `torch.xpu.get_device_properties` and `torch.xpu.get_device_capability`. They can be used in `torch.compile`  or directly passed to triton to generate more optimized code based on device properties.

# Additional Context
expose the following attributes to `torch.xpu.get_device_properties`:
- `has_fp16` (newly added)
- `has_fp64` (newly added)
- `has_atomic64` (newly added)
- `driver_version`
- `vendor`
- `version`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/121898
Approved by: https://github.com/jgong5, https://github.com/EikanWang, https://github.com/malfet, https://github.com/albanD, https://github.com/atalman
2024-03-30 00:25:39 +00:00
..
Event.cpp [CLANGTIDY] Enable clang-tidy in torch/csrc/xpu (#120616) 2024-02-28 01:35:25 +00:00
Event.h Intel GPU Runtime Upstreaming for Event (#117734) 2024-02-16 06:28:26 +00:00
Module.cpp Add attributes to xpu device prop (#121898) 2024-03-30 00:25:39 +00:00
Module.h
Stream.cpp [CLANGTIDY] Enable clang-tidy in torch/csrc/xpu (#120616) 2024-02-28 01:35:25 +00:00
Stream.h [CLANGTIDY] Enable clang-tidy in torch/csrc/xpu (#120616) 2024-02-28 01:35:25 +00:00