pytorch/c10
Jane Xu 30587195d3 Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035)
Summary: As above, also changes a bunch of the build files to be better

Test Plan:
internal and external CI

did run buck2 build fbcode//caffe2:torch and it succeeded

Rollback Plan:

Reviewed By: swolchok

Differential Revision: D78016591

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158035
Approved by: https://github.com/swolchok
2025-07-15 19:52:59 +00:00
..
benchmark Set RUNPATH so installed tests can find the required shared libraries (#136627) 2024-10-25 09:38:08 +00:00
core Revert "Introduce AcceleratorAllocatorConfig as the common class (#149601)" 2025-07-15 18:40:59 +00:00
cuda Revert "Refactor CUDAAllocatorConfig to reuse AcceleratorAllocatorConfig (#150312)" 2025-07-15 18:24:36 +00:00
hip Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
macros Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00
metal [MPS] Extend atomic operations to all int types (#158179) 2025-07-14 04:25:05 +00:00
mobile [2/N] Fix extra warnings brought by clang-tidy-17 (#137459) 2024-10-08 19:05:02 +00:00
test Revert "Introduce AcceleratorAllocatorConfig as the common class (#149601)" 2025-07-15 18:40:59 +00:00
util Fix UB in BFloat16 round_to_nearest_even (#157942) 2025-07-10 18:03:39 +00:00
xpu Revert "Deprecate overleap functions in CUDAAllocatorConfig, use AcceleratorAllocatorConfig instead (#156165)" 2025-07-15 18:24:36 +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 remove //c10:headers (#98420) 2023-04-05 19:33:10 +00:00
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 Migrate c10/macros/cmake_macros.h.in to torch/headeronly (#158035) 2025-07-15 19:52:59 +00:00