pytorch/torch/csrc/inductor
Ding, Yi1 c21dc11a17 [Intel GPU] Enable SDPA on XPU (#147614)
Motivation
===

This PR is part of the plan of OneDNN Upstreaming, as #114848 [(comment)](https://github.com/pytorch/pytorch/issues/114848#issuecomment-2451553203) stated. The support of SDPA is via the overridable variance on XPU backend. Beside the added `Attention.cpp` file, `Graph.h` is added to hold utils for OneDNN graph including those for kernel/compile graph caching. In addition, a selection of testcases in `test/test_transformers.py` are copied into the new `test/xpu/test_transformers.py` and modified accordingly to provide additional tests beyond `./third_party/torch-xpu-ops/test/xpu/test_ops_xpu.py`.

Depends on OneDNN version v3.7 upgrade in #147498
Depends on BUILD_GRAPH switch in #147608

Pull Request resolved: https://github.com/pytorch/pytorch/pull/147614
Approved by: https://github.com/jansel, https://github.com/EikanWang
2025-03-04 01:40:45 +00:00
..
aoti_eager Enable more readability-redundant checks (#143963) 2024-12-30 14:49:33 +00:00
aoti_include cpp_wrapper: Move #includes to per-device header files (#145932) 2025-01-29 21:08:45 +00:00
aoti_package [AOTI] Fix a memory leak in package boxed_run (#146100) 2025-01-31 13:32:28 +00:00
aoti_runner [AOTI] Add a boxed_run API (#142213) 2025-01-14 18:47:42 +00:00
aoti_runtime [AOTInductor] Guard RAII_cpuMalloc with macro (#147150) 2025-02-14 23:21:35 +00:00
aoti_torch [Intel GPU] Enable SDPA on XPU (#147614) 2025-03-04 01:40:45 +00:00
cpp_wrapper cpp_wrapper: Move #includes to per-device header files (#145932) 2025-01-29 21:08:45 +00:00
array_ref_impl.h cpp_wrapper: Move #includes to per-device header files (#145932) 2025-01-29 21:08:45 +00:00
inductor_ops.cpp [Reland] [1/N] Fix clang-tidy warnings in inductor (#134544) 2024-08-28 04:05:06 +00:00
inductor_ops.h [2/N] Fix clang-tidy warnings in inductor (#132040) 2024-07-29 18:41:24 +00:00
resize_storage_bytes.cpp [Reland] [1/N] Fix clang-tidy warnings in inductor (#134544) 2024-08-28 04:05:06 +00:00